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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-10 19:56:33 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-10 19:56:33 +0400
commit297fde9e5f6ea84eadce49689dc59409ed34c532 (patch)
treec6ba61e5623f65134747b5b0dffd045a81e9fad2 /release/scripts/startup/bl_ui/space_info.py
parent93e00af7e51015dd654b4194b4344d56272114fa (diff)
Fix #30892: File > New is easy to hit accidentally, now it asks for confirmation.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_info.py')
-rw-r--r--release/scripts/startup/bl_ui/space_info.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py
index 4f786a0be83..66d18fc6f19 100644
--- a/release/scripts/startup/bl_ui/space_info.py
+++ b/release/scripts/startup/bl_ui/space_info.py
@@ -105,9 +105,8 @@ class INFO_MT_file(Menu):
def draw(self, context):
layout = self.layout
- layout.operator_context = 'EXEC_AREA'
- layout.operator("wm.read_homefile", text="New", icon='NEW')
layout.operator_context = 'INVOKE_AREA'
+ layout.operator("wm.read_homefile", text="New", icon='NEW')
layout.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER')
layout.menu("INFO_MT_file_open_recent", icon='OPEN_RECENT')
layout.operator("wm.recover_last_session", icon='RECOVER_LAST')