File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ void EditorQuickOpenDialog::_finish_dialog_setup(const Vector<StringName> &p_bas
189189}
190190
191191void EditorQuickOpenDialog::ok_pressed () {
192+ container->save_selected_item ();
193+
192194 update_property ();
193195 container->cleanup ();
194196 search_box->clear ();
@@ -216,15 +218,13 @@ void EditorQuickOpenDialog::selection_changed() {
216218void EditorQuickOpenDialog::item_pressed (bool p_double_click) {
217219 // A double-click should always be taken as a "confirm" action.
218220 if (p_double_click) {
219- container->save_selected_item ();
220221 ok_pressed ();
221222 return ;
222223 }
223224
224225 // Single-clicks should be taken as a "confirm" action only if Instant Preview
225226 // isn't currently enabled, or the property object is null for some reason.
226227 if (!_is_instant_preview_active ()) {
227- container->save_selected_item ();
228228 ok_pressed ();
229229 }
230230}
You can’t perform that action at this time.
0 commit comments