Forgot in previous commit to take care of user preferences

This commit is contained in:
2014-01-16 22:16:43 +01:00
parent 3110526bca
commit 024ecf9fc1

View File

@@ -131,7 +131,7 @@ class INFO_MT_file(Menu):
layout.separator()
layout.operator_context = 'EXEC_AREA'
if bpy.data.is_dirty:
if bpy.data.is_dirty and bpy.context.user_preferences.view.use_quit_dialog:
layout.operator_context = 'INVOKE_SCREEN' # quit dialog
layout.operator("wm.quit_blender", text="Quit", icon='QUIT')