Skip to content

Commit

Permalink
effects preferences: only allow single selection in either of the two…
Browse files Browse the repository at this point in the history
… chains lists
  • Loading branch information
ronso0 committed Oct 22, 2021
1 parent d5431d4 commit 009da76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preferences/dialog/dlgprefeffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void DlgPrefEffects::setupManifestTableView(QTableView* pTableView) {
// QTableView won't remove dragged items without this??
pTableView->setDragDropOverwriteMode(false);
pTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
pTableView->setSelectionMode(QAbstractItemView::ExtendedSelection);
pTableView->setSelectionMode(QAbstractItemView::SingleSelection);
connect(pTableView->selectionModel(),
&QItemSelectionModel::currentRowChanged,
this,
Expand Down Expand Up @@ -297,6 +297,7 @@ bool DlgPrefEffects::eventFilter(QObject* pChainList, QEvent* event) {
return false;
}
m_pFocusedChainList = pListView;
unfocusedChainList()->selectionModel()->reset();
}
return false;
}
Expand Down

0 comments on commit 009da76

Please sign in to comment.