Skip to content

Commit

Permalink
[hig] Fix incorrect capitalization in title of new layout name dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 17, 2020
1 parent b20f57f commit 92d0ec5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -9384,11 +9384,15 @@ bool QgisApp::uniqueLayoutTitle( QWidget *parent, QString &title, bool acceptEmp
{
layoutNames << l->name();
}

const QString windowTitle = tr( "Create %1" ).arg( QgsGui::higFlags() & QgsGui::HigDialogTitleIsTitleCase ? QgsStringUtils::capitalize( typeString, QgsStringUtils::TitleCase )
: typeString );

while ( !titleValid )
{

QgsNewNameDialog dlg( typeString, newTitle, QStringList(), layoutNames, QRegExp(), Qt::CaseSensitive, parent );
dlg.setWindowTitle( tr( "Create %1 Title" ).arg( typeString ) );
dlg.setWindowTitle( windowTitle );
dlg.setHintString( titleMsg );
dlg.setOverwriteEnabled( false );
dlg.setAllowEmptyName( true );
Expand Down

0 comments on commit 92d0ec5

Please sign in to comment.