Skip to content
Permalink
Browse files

[layouts] fix layout designer restore window state / geometry

  • Loading branch information
nirvn committed Jan 10, 2018
1 parent 55a3eda commit d6b2749e3b87b85c1c5a43e8e3af3edda41455de
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -3374,12 +3374,12 @@ void QgsLayoutDesignerDialog::restoreWindowState()
QgsSettings settings;

//TODO - defaults
if ( !restoreState( settings.value( QStringLiteral( "LayoutDesigner/state" ) /*, QByteArray::fromRawData( ( char * )defaultComposerUIstate, sizeof defaultComposerUIstate ) */ ).toByteArray() ) )
if ( !restoreState( settings.value( QStringLiteral( "LayoutDesigner/state" ), QVariant(), QgsSettings::App /*, QByteArray::fromRawData( ( char * )defaultComposerUIstate, sizeof defaultComposerUIstate ) */ ).toByteArray() ) )
{
QgsDebugMsg( "restore of layout UI state failed" );
}
// restore window geometry
if ( !restoreGeometry( settings.value( QStringLiteral( "LayoutDesigner/geometry" ) /*, QByteArray::fromRawData( ( char * )defaultComposerUIgeometry, sizeof defaultComposerUIgeometry ) */ ).toByteArray() ) )
if ( !restoreGeometry( settings.value( QStringLiteral( "LayoutDesigner/geometry" ), QVariant(), QgsSettings::App /*, QByteArray::fromRawData( ( char * )defaultComposerUIgeometry, sizeof defaultComposerUIgeometry ) */ ).toByteArray() ) )
{
QgsDebugMsg( "restore of layout UI geometry failed" );
}

0 comments on commit d6b2749

Please sign in to comment.
You can’t perform that action at this time.