not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.

This commit is contained in:
Campbell Barton
2011-12-11 21:23:29 +00:00
parent b22405fa6f
commit 5600cf9dd9
3 changed files with 7 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ class ANIM_OT_keying_set_export(Operator):
bl_label = "Export Keying Set..."
filepath = StringProperty(
name="File Path",
subtype='FILE_PATH',
)
filter_folder = BoolProperty(
name="Filter folders",

View File

@@ -30,9 +30,7 @@ class EditExternally(Operator):
bl_options = {'REGISTER'}
filepath = StringProperty(
name="File Path",
description="Path to an image file",
maxlen=1024,
subtype='FILE_PATH',
)
def _editor_guess(self, context):

View File

@@ -748,8 +748,6 @@ class WM_OT_path_open(Operator):
bl_label = ""
filepath = StringProperty(
name="File Path",
maxlen=1024,
subtype='FILE_PATH',
)
@@ -1085,8 +1083,7 @@ class WM_OT_keyconfig_activate(Operator):
bl_label = "Activate Keyconfig"
filepath = StringProperty(
name="File Path",
maxlen=1024,
subtype='FILE_PATH',
)
def execute(self, context):
@@ -1116,8 +1113,7 @@ class WM_OT_appconfig_activate(Operator):
bl_label = "Activate Application Configuration"
filepath = StringProperty(
name="File Path",
maxlen=1024,
subtype='FILE_PATH',
)
def execute(self, context):
@@ -1203,8 +1199,7 @@ class WM_OT_keyconfig_import(Operator):
bl_label = "Import Key Configuration..."
filepath = StringProperty(
name="File Path",
description="Filepath to write file to",
subtype='FILE_PATH',
default="keymap.py",
)
filter_folder = BoolProperty(
@@ -1270,8 +1265,7 @@ class WM_OT_keyconfig_export(Operator):
bl_label = "Export Key Configuration..."
filepath = StringProperty(
name="File Path",
description="Filepath to write file to",
subtype='FILE_PATH',
default="keymap.py",
)
filter_folder = BoolProperty(
@@ -1513,8 +1507,7 @@ class WM_OT_addon_install(Operator):
)
filepath = StringProperty(
name="File Path",
description="File path to write file to",
subtype='FILE_PATH',
)
filter_folder = BoolProperty(
name="Filter folders",