mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Avoid possibly showing two Dialogs at the same time
Update editor/scene_tree_editor.cpp Add a comment to explain why Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
0aa85f4ff8
commit
72a768b24f
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user