diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-30 19:15:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 19:15:04 +0200 |
commit | e2e73ec906d0671c870ff64eefd15dfc86abaaec (patch) | |
tree | e7019e15ce5455be5e5d40135e421d83b817417c /editor | |
parent | 28c21b6c24b9720aaf4ded9e22a2a18f4c8c9655 (diff) | |
parent | bbcf999e99a2100a17b15934fbebfc09b41b3d5c (diff) |
Merge pull request #9448 from Noshyaar/pr1
EditorNode: request attention when quit while minimized
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3d119354e1..77050acd7c 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2462,6 +2462,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { confirmation->popup_centered_minsize(); } else { _discard_changes(); + break; } } else { @@ -2488,6 +2489,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { } } + if (OS::get_singleton()->is_window_minimized()) + OS::get_singleton()->request_attention(); break; } |