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:
authorSebastian Parborg <zeddb>2019-01-04 16:23:49 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-04 16:45:16 +0300
commite571f0255f2b045efb0525ebe104322bc331d584 (patch)
tree931d8532d9c8785cdaa52e7a50a89516104965b7 /source/blender/windowmanager/intern
parentf2ebb7bb793308a9d222f67ef93fe2a2c014d414 (diff)
Fix T59946: multiple quit dialogs possible.
Differential Revision: https://developer.blender.org/D4147
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 8be35c10ae9..281a556a62d 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -444,7 +444,9 @@ static void wm_confirm_quit(bContext *C)
wmWindow *win = CTX_wm_window(C);
if (GHOST_SupportsNativeDialogs() == 0) {
- UI_popup_block_invoke(C, block_create_confirm_quit, NULL);
+ if (!UI_popup_block_name_exists(C, "confirm_quit_popup")) {
+ UI_popup_block_invoke(C, block_create_confirm_quit, NULL);
+ }
}
else if (GHOST_confirmQuit(win->ghostwin)) {
wm_exit_schedule_delayed(C);