Skip to content

Commit

Permalink
Merge pull request #37681 from Anutrix/dont_disconnect
Browse files Browse the repository at this point in the history
Fix signal disconnection soon after connection in EditorQuickOpen
  • Loading branch information
akien-mga authored Apr 8, 2020
2 parents b2f79ca + db78ad6 commit 8ef9fc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/quick_open.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ void EditorQuickOpen::_notification(int p_what) {
connect("confirmed", callable_mp(this, &EditorQuickOpen::_confirmed));

search_box->set_clear_button_enabled(true);
[[fallthrough]];
}
} break;
case NOTIFICATION_EXIT_TREE: {
disconnect("confirmed", callable_mp(this, &EditorQuickOpen::_confirmed));
} break;
Expand Down

0 comments on commit 8ef9fc3

Please sign in to comment.