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 Nov 1, 2021
1 parent 307943d commit ba1be28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/processing/qgsprocessingmultipleselectiondialog.cpp
Expand Up @@ -67,6 +67,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 ba1be28

Please sign in to comment.