summaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-05 10:59:39 +0100
committerGitHub <noreply@github.com>2022-01-05 10:59:39 +0100
commitc0b3da78ad924fdbb612e73c05d8c6e515c8d4ae (patch)
tree78686cbb2f412128a51381367bd7208cff675c41 /scene/gui/control.cpp
parent8eb1d2034686cdfcbd8f8577a2099251ac6f6600 (diff)
parentbe2d59fa0a77d60b19748a304fb74c386dd8e114 (diff)
Merge pull request #56255 from PucklaMotzer09/control_unfocus
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r--scene/gui/control.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index bc0e0e9eee..e4a5b265e3 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -589,6 +589,7 @@ void Control::_notification(int p_notification) {
_size_changed();
} break;
case NOTIFICATION_EXIT_TREE: {
+ release_focus();
get_viewport()->_gui_remove_control(this);
} break;
case NOTIFICATION_READY: {