summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-06 20:31:00 +0200
committerGitHub <noreply@github.com>2019-07-06 20:31:00 +0200
commit9d6859ca09d887246a7f3e653bed4c4b10fea3a7 (patch)
tree752b1bbac2d98a503a01f701d4eac113d4e1eaa0 /scene/gui
parente7b5f3c4e4deb0445bae0ae336c152621f842ead (diff)
parente222615e979a494d5cdb69958d1690e8ac745728 (diff)
Merge pull request #30379 from bojidar-bg/30368-editor-stay-dimmed
Fix editor remaining dimmed after certain actions
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/popup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp
index 492e379440..9e996e5519 100644
--- a/scene/gui/popup.cpp
+++ b/scene/gui/popup.cpp
@@ -48,6 +48,14 @@ void Popup::_notification(int p_what) {
update_configuration_warning();
}
+ if (p_what == NOTIFICATION_EXIT_TREE) {
+ if (popped_up) {
+ popped_up = false;
+ notification(NOTIFICATION_POPUP_HIDE);
+ emit_signal("popup_hide");
+ }
+ }
+
if (p_what == NOTIFICATION_ENTER_TREE) {
//small helper to make editing of these easier in editor
#ifdef TOOLS_ENABLED