From ec1c87974604ddb4d15e23540f91c5f0a6fd990c Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Thu, 7 Mar 2019 21:48:12 -0300 Subject: [PATCH] Fix "Favorite" button not being toggled when navigating to a faved folder manually --- editor/editor_file_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp index da16c169669..4c9f58f312a 100644 --- a/editor/editor_file_dialog.cpp +++ b/editor/editor_file_dialog.cpp @@ -852,7 +852,7 @@ void EditorFileDialog::update_file_list() { fav_down->set_disabled(true); get_ok()->set_disabled(_is_open_should_be_disabled()); for (int i = 0; i < favorites->get_item_count(); i++) { - if (favorites->get_item_metadata(i) == cdir) { + if (favorites->get_item_metadata(i) == cdir || favorites->get_item_metadata(i) == cdir + "/") { favorites->select(i); favorite->set_pressed(true); if (i > 0) {