Merge pull request #62270 from Rindbee/avoid-two-showing-dialog

This commit is contained in:
Rémi Verschelde 2022-06-21 13:00:43 +02:00 committed by GitHub
commit b5f20a49a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1353,8 +1353,9 @@ void SceneTreeDialog::_cancel() {
void SceneTreeDialog::_select() {
if (tree->get_selected()) {
emit_signal(SNAME("selected"), tree->get_selected()->get_path());
// The signal may cause another dialog to be displayed, so be sure to hide this one first.
hide();
emit_signal(SNAME("selected"), tree->get_selected()->get_path());
}
}