From bc7863775c994009bddd28c8a96fb1845926371f Mon Sep 17 00:00:00 2001 From: James Buck Date: Thu, 25 Apr 2019 11:19:04 -0500 Subject: [PATCH] Cancel tooltip when hiding the node it belongs to --- scene/main/viewport.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 52f63ddc1d0..ae2c5712013 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2482,11 +2482,7 @@ void Viewport::_gui_hid_control(Control *p_control) { if (gui.mouse_over == p_control) gui.mouse_over = NULL; if (gui.tooltip == p_control) - gui.tooltip = NULL; - if (gui.tooltip == p_control) { - gui.tooltip = NULL; _gui_cancel_tooltip(); - } } void Viewport::_gui_remove_control(Control *p_control) {