[Bf-blender-cvs] [3110526] master: Improved the Quit Confirm behaviour: Now confirm only shows up when current session is dirty

gaiaclary noreply at git.blender.org
Thu Jan 16 21:42:23 CET 2014


Commit: 3110526bcacbb11717d99b87d3a00cc99e8b3ef1
Author: gaiaclary
Date:   Thu Jan 16 21:42:16 2014 +0100
https://developer.blender.org/rB3110526bcacbb11717d99b87d3a00cc99e8b3ef1

Improved the Quit Confirm behaviour: Now confirm only shows up when current session is dirty

===================================================================

M	release/scripts/startup/bl_ui/space_info.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py
index 989b0a0..769065c 100644
--- a/release/scripts/startup/bl_ui/space_info.py
+++ b/release/scripts/startup/bl_ui/space_info.py
@@ -83,7 +83,6 @@ class INFO_MT_file(Menu):
     bl_label = "File"
 
     def draw(self, context):
-        import sys
         layout = self.layout
 
         layout.operator_context = 'INVOKE_AREA'
@@ -132,7 +131,7 @@ class INFO_MT_file(Menu):
         layout.separator()
 
         layout.operator_context = 'EXEC_AREA'
-        if sys.platform == "darwin":
+        if bpy.data.is_dirty:
             layout.operator_context = 'INVOKE_SCREEN' # quit dialog
         layout.operator("wm.quit_blender", text="Quit", icon='QUIT')




More information about the Bf-blender-cvs mailing list