Fix error with a specific dock layout
This commit is contained in:
parent
7438093562
commit
9f62f79dbb
4 changed files with 9 additions and 0 deletions
|
@ -252,6 +252,8 @@ void EditorHelpSearch::_notification(int p_what) {
|
|||
|
||||
connect("confirmed", this, "_confirmed");
|
||||
_update_search();
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
disconnect("confirmed", this, "_confirmed");
|
||||
} else if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
|
||||
|
||||
if (is_visible_in_tree()) {
|
||||
|
|
|
@ -210,6 +210,9 @@ void ScriptEditorQuickOpen::_notification(int p_what) {
|
|||
search_box->set_right_icon(get_icon("Search", "EditorIcons"));
|
||||
search_box->set_clear_button_enabled(true);
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
disconnect("confirmed", this, "_confirmed");
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -394,6 +394,8 @@ void PropertySelector::_notification(int p_what) {
|
|||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
|
||||
connect("confirmed", this, "_confirmed");
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
disconnect("confirmed", this, "_confirmed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -261,6 +261,8 @@ void EditorQuickOpen::_notification(int p_what) {
|
|||
|
||||
search_box->set_right_icon(get_icon("Search", "EditorIcons"));
|
||||
search_box->set_clear_button_enabled(true);
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
disconnect("confirmed", this, "_confirmed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue