Skip to content

Commit

Permalink
Fixes #44270 : Update processing multiple selection widget selection …
Browse files Browse the repository at this point in the history
…on item reordering
  • Loading branch information
troopa81 authored and nyalldawson committed Sep 17, 2021
1 parent 5ea353b commit 0b9b204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/processing/qgsprocessingmultipleselectiondialog.cpp
Expand Up @@ -72,6 +72,10 @@ QgsProcessingMultipleSelectionPanelWidget::QgsProcessingMultipleSelectionPanelWi
populateList( availableOptions, selectedOptions );

connect( mModel, &QStandardItemModel::itemChanged, this, &QgsProcessingMultipleSelectionPanelWidget::selectionChanged );

// When user moves an item, a new item is created and an other one is removed, so we need to fire selectionChanged
// see https://github.com/qgis/QGIS/issues/44270
connect( mModel, &QStandardItemModel::rowsRemoved, this, &QgsProcessingMultipleSelectionPanelWidget::selectionChanged );
}

void QgsProcessingMultipleSelectionPanelWidget::setValueFormatter( const std::function<QString( const QVariant & )> &formatter )
Expand Down

0 comments on commit 0b9b204

Please sign in to comment.