Skip to content

Commit

Permalink
fix handling of algorithm flags in modeler tree view (fix #48586)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Jun 18, 2022
1 parent 6d41343 commit 2ff958f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/processing/models/qgsmodeldesignerdialog.cpp
Expand Up @@ -226,6 +226,9 @@ QgsModelDesignerDialog::QgsModelDesignerDialog( QWidget *parent, Qt::WindowFlags
mMenuEdit->insertAction( mActionDeleteComponents, mActionPaste );
mMenuEdit->insertSeparator( mActionDeleteComponents );

mAlgorithmsModel = new QgsModelerToolboxModel( this );
mAlgorithmsTree->setToolboxProxyModel( mAlgorithmsModel );

QgsProcessingToolboxProxyModel::Filters filters = QgsProcessingToolboxProxyModel::FilterModeler;
if ( settings.value( QStringLiteral( "Processing/Configuration/SHOW_ALGORITHMS_KNOWN_ISSUES" ), false ).toBool() )
{
Expand All @@ -235,9 +238,6 @@ QgsModelDesignerDialog::QgsModelDesignerDialog( QWidget *parent, Qt::WindowFlags
mAlgorithmsTree->setDragDropMode( QTreeWidget::DragOnly );
mAlgorithmsTree->setDropIndicatorShown( true );

mAlgorithmsModel = new QgsModelerToolboxModel( this );
mAlgorithmsTree->setToolboxProxyModel( mAlgorithmsModel );

connect( mView, &QgsModelGraphicsView::algorithmDropped, this, [ = ]( const QString & algorithmId, const QPointF & pos )
{
addAlgorithm( algorithmId, pos );
Expand Down

0 comments on commit 2ff958f

Please sign in to comment.