Skip to content

Commit

Permalink
[processing] Fix model designer 'save' action functions like a 'save as'
Browse files Browse the repository at this point in the history
action when editing an existing model opened through the dialog
  • Loading branch information
nyalldawson committed Feb 4, 2022
1 parent ae32db4 commit 608648b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/processing/models/qgsmodeldesignerdialog.cpp
Expand Up @@ -464,6 +464,7 @@ void QgsModelDesignerDialog::loadModel( const QString &path )
if ( alg->fromFile( path ) )
{
alg->setProvider( QgsApplication::processingRegistry()->providerById( QStringLiteral( "model" ) ) );
alg->setSourceFilePath( path );
setModel( alg.release() );
}
else
Expand Down

0 comments on commit 608648b

Please sign in to comment.