fixed nesting bug and reveal in project with icon view bug

This commit is contained in:
itsmattkc
2018-12-31 01:23:20 +11:00
parent b43a9f560f
commit ac4fd70dc2
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -729,6 +729,7 @@ bool Project::reveal_media(Media *media, QModelIndex parent) {
tree_view->selectionModel()->select(sorted_index, QItemSelectionModel::Select);
} else if (config.project_view_type == PROJECT_VIEW_ICON) {
icon_view->setRootIndex(hierarchy);
icon_view->selectionModel()->select(sorted_index, QItemSelectionModel::Select);
set_up_dir_enabled();
}