OSX: Fix T37602, quitting from the File Menu does not ask

This commit is contained in:
jens verwiebe 2013-11-25 10:56:15 +01:00
parent aa3c06b41c
commit de1660d8bb
Notes: blender-bot 2023-02-14 11:33:24 +01:00
Referenced by issue #37602, Ask To Save - OSX, Linux
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,7 @@ class INFO_MT_file(Menu):
bl_label = "File"
def draw(self, context):
import sys
layout = self.layout
layout.operator_context = 'INVOKE_AREA'
@ -131,6 +132,8 @@ class INFO_MT_file(Menu):
layout.separator()
layout.operator_context = 'EXEC_AREA'
if sys.platform == "darwin":
layout.operator_context = 'INVOKE_SCREEN' # quit dialog
layout.operator("wm.quit_blender", text="Quit", icon='QUIT')