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:
authorgaiaclary <gaia.clary@machinimatrix.org>2014-01-17 00:42:16 +0400
committergaiaclary <gaia.clary@machinimatrix.org>2014-01-17 00:42:16 +0400
commit3110526bcacbb11717d99b87d3a00cc99e8b3ef1 (patch)
tree9664fbc4f37cbef48757d70613164d0a0b59d94e /release
parent9cc5c157e8d20c7652953f864b8e24e9bc810748 (diff)
Improved the Quit Confirm behaviour: Now confirm only shows up when current session is dirty
Diffstat (limited to 'release')
-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 989b0a0b6e3..769065cd12f 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')