Skip to content

Commit

Permalink
Update qgsmodeldesignerdialog.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Sep 22, 2024
1 parent bc858c0 commit a1aa2a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/processing/models/qgsmodeldesignerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ QgsModelDesignerDialog::QgsModelDesignerDialog( QWidget *parent, Qt::WindowFlags
beginUndoCommand( tr( "Change Model Group" ), GroupChanged );
mModel->setGroup( group );
endUndoCommand();
updateWindowTitle();
}
} );

Expand Down Expand Up @@ -823,7 +824,9 @@ void QgsModelDesignerDialog::updateWindowTitle()
{
QString title = tr( "Model Designer" );
if ( !mModel->name().isEmpty() )
title = QStringLiteral( "%1 - %2" ).arg( title, mModel->name() );
title = mModel->group().isEmpty()
? QStringLiteral( "%1: %2" ).arg( title, mModel->name() )
: QStringLiteral( "%1: %2 - %3" ).arg( title, model->group(), mModel->name() );

if ( isDirty() )
title.prepend( '*' );
Expand Down

0 comments on commit a1aa2a7

Please sign in to comment.