[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54039] trunk/blender/release/scripts/ startup/bl_ui/space_info.py: File Menu, "Save startup file" no asks for save-over confirm.

Ton Roosendaal ton at blender.org
Wed Jan 23 13:08:24 CET 2013


Revision: 54039
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54039
Author:   ton
Date:     2013-01-23 12:08:23 +0000 (Wed, 23 Jan 2013)
Log Message:
-----------
File Menu, "Save startup file" no asks for save-over confirm.
Being a destructive action (and there are no versions saved as backup) it's an
OK convention to prevent accidents.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_info.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_info.py	2013-01-23 12:06:18 UTC (rev 54038)
+++ trunk/blender/release/scripts/startup/bl_ui/space_info.py	2013-01-23 12:08:23 UTC (rev 54039)
@@ -124,8 +124,9 @@
 
         layout.operator("screen.userpref_show", text="User Preferences...", icon='PREFERENCES')
 
+        layout.operator_context = 'INVOKE_AREA'
+        layout.operator("wm.save_homefile", icon='SAVE_PREFS')
         layout.operator_context = 'EXEC_AREA'
-        layout.operator("wm.save_homefile", icon='SAVE_PREFS')
         layout.operator("wm.read_factory_settings", icon='LOAD_FACTORY')
 
         layout.separator()




More information about the Bf-blender-cvs mailing list