Merge pull request #23518 from volzhs/confirmed_already_connected
Fix error with a specific dock layout
This commit is contained in:
commit
06a133bdd1
|
@ -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 New Issue