Skip to content

Commit

Permalink
Merge pull request #34702 from Zylann/fix_project_manager_opens_wrong…
Browse files Browse the repository at this point in the history
…_project

Fix wrong project opening in some situations
  • Loading branch information
akien-mga authored Dec 30, 2019
2 parents 97ebde4 + 4c7d02d commit 5fa1905
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,9 +1409,7 @@ void ProjectList::sort_projects() {

for (int i = 0; i < _projects.size(); ++i) {
Item &item = _projects.write[i];
if (item.control->is_visible()) {
item.control->get_parent()->move_child(item.control, i);
}
item.control->get_parent()->move_child(item.control, i);
}

// Rewind the coroutine because order of projects changed
Expand Down

0 comments on commit 5fa1905

Please sign in to comment.