reveal in project selects entire row instead of one cell

This commit is contained in:
itsmattkc
2019-02-10 01:40:48 -08:00
parent 5661473dec
commit fc344d9948
+6 -1
View File
@@ -831,7 +831,12 @@ bool Project::reveal_media(Media *media, QModelIndex parent) {
}
// select item
tree_view->selectionModel()->select(sorted_index, QItemSelectionModel::Select);
QItemSelection row_select(
sorter->index(sorted_index.row(), 0, sorted_index.parent()),
sorter->index(sorted_index.row(), sorter->columnCount()-1, sorted_index.parent())
);
tree_view->selectionModel()->select(row_select, QItemSelectionModel::Select);
} else if (config.project_view_type == PROJECT_VIEW_ICON) {
icon_view->setRootIndex(hierarchy);
icon_view->selectionModel()->select(sorted_index, QItemSelectionModel::Select);