Skip to content

Commit

Permalink
effects preferences: fix update()
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Oct 22, 2021
1 parent 2f3fee8 commit 76c341c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/preferences/dialog/dlgprefeffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ void DlgPrefEffects::setupChainListView(QListView* pListView) {
void DlgPrefEffects::slotUpdate() {
clear();

// Prevent emission of dataChanged() when clearing the effects lists to not
// call effectsTableItemSelected() with a selection that has no model.
visibleEffectsTableView->selectionModel()->reset();
hiddenEffectsTableView->selectionModel()->reset();

const QList<EffectManifestPointer> visibleEffects = m_pVisibleEffectsList->getList();
m_pVisibleEffectsModel->setList(visibleEffects);

Expand Down

0 comments on commit 76c341c

Please sign in to comment.