Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r--release/scripts/startup/bl_operators/wm.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 85f4f89d01e..0788e3bc51c 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1747,8 +1747,10 @@ class WM_OT_drop_blend_file(Operator):
layout = menu.layout
col = layout.column()
- col.operator_context = 'EXEC_DEFAULT'
- col.operator("wm.open_mainfile", text="Open", icon='FILE_FOLDER').filepath = self.filepath
+ col.operator_context = 'INVOKE_DEFAULT'
+ props = col.operator("wm.open_mainfile", text="Open", icon='FILE_FOLDER')
+ props.filepath = self.filepath
+ props.display_file_selector = False
layout.separator()
col = layout.column()