Skip to content

Commit

Permalink
Fix incorrect dialog title for raster layer properties
Browse files Browse the repository at this point in the history
Fixes #35510

(cherry picked from commit 2099261)
  • Loading branch information
nyalldawson committed Jun 19, 2020
1 parent 14366d5 commit a3530fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -166,11 +166,13 @@ void QgsOptionsDialogBase::restoreOptionsBaseUi( const QString &title )
if ( !title.isEmpty() )
{
mDialogTitle = title;
updateWindowTitle();
}

// re-save original dialog title in case it was changed after dialog initialization
mDialogTitle = windowTitle();
else
{
// re-save original dialog title in case it was changed after dialog initialization
mDialogTitle = windowTitle();
}
updateWindowTitle();

restoreGeometry( mSettings->value( QStringLiteral( "/Windows/%1/geometry" ).arg( mOptsKey ) ).toByteArray() );
// mOptListWidget width is fixed to take up less space in QtDesigner
Expand Down

0 comments on commit a3530fa

Please sign in to comment.