diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-06-30 01:39:26 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-06-30 08:16:29 +0700 |
commit | bbcf999e99a2100a17b15934fbebfc09b41b3d5c (patch) | |
tree | 9fddc5cada2382770f0813aff60ac149088c3c05 | |
parent | 198bd9db02950d261c83b0c383fe737df3c5f152 (diff) |
EditorNode: request attention when quit while minimized
-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; } |