Skip to content
Permalink
Browse files
Fixes #44270 : Update processing multiple selection widget selection …
…on item reordering
  • Loading branch information
troopa81 authored and nyalldawson committed Nov 1, 2021
1 parent 307943d commit ba1be288e1f81155a2632a647c78725ad2777f03
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/processing/qgsprocessingmultipleselectiondialog.cpp
@@ -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 )

0 comments on commit ba1be28

Please sign in to comment.