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
  • Loading branch information
nyalldawson committed May 20, 2020
1 parent 24ee358 commit 2099261
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gui/qgsoptionsdialogbase.cpp
Original file line number Diff line number Diff line change
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 2099261

Please sign in to comment.