summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-06-09 22:44:31 -0300
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-06-09 22:44:31 -0300
commit307fe76089c8bbbb1371cb5578a5a3bb2f7faef0 (patch)
treee4594ff50444fc49edc5875f731f4675de41c9cc
parent138a8f1a99f8b79556e46f487818a451d23170a4 (diff)
Allow reselecting items in the "Favorites" and "Recent" lists in the create dialog
-rw-r--r--editor/create_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 604a050fcd..854f9d125c 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -733,6 +733,7 @@ CreateDialog::CreateDialog() {
fav_vb->add_margin_child(TTR("Favorites:"), favorites, true);
favorites->set_hide_root(true);
favorites->set_hide_folding(true);
+ favorites->set_allow_reselect(true);
favorites->connect("cell_selected", this, "_favorite_selected");
favorites->connect("item_activated", this, "_favorite_activated");
favorites->set_drag_forwarding(this);
@@ -747,6 +748,7 @@ CreateDialog::CreateDialog() {
rec_vb->add_margin_child(TTR("Recent:"), recent, true);
recent->set_hide_root(true);
recent->set_hide_folding(true);
+ recent->set_allow_reselect(true);
recent->connect("cell_selected", this, "_history_selected");
recent->connect("item_activated", this, "_history_activated");
recent->add_constant_override("draw_guides", 1);