diff --git a/src/config.cc b/src/config.cc index 5e411a13..6843b5d6 100644 --- a/src/config.cc +++ b/src/config.cc @@ -1107,11 +1107,6 @@ Class load() if ( !mainWindowGeometry.isNull() ) c.mainWindowGeometry = QByteArray::fromBase64( mainWindowGeometry.toElement().text().toLatin1() ); - QDomNode mainWindowMaximized = root.namedItem( "mainWindowMaximized" ); - - if ( !mainWindowMaximized.isNull() ) - c.mainWindowMaximized = ( mainWindowMaximized.toElement().text() == "1" ); - QDomNode dictInfoGeometry = root.namedItem( "dictInfoGeometry" ); if ( !dictInfoGeometry.isNull() ) @@ -2100,10 +2095,6 @@ void save( Class const & c ) opt.appendChild( dd.createTextNode( QString::fromLatin1( c.mainWindowGeometry.toBase64() ) ) ); root.appendChild( opt ); - opt = dd.createElement( "mainWindowMaximized" ); - opt.appendChild( dd.createTextNode( c.mainWindowMaximized ? "1" : "0" ) ); - root.appendChild( opt ); - opt = dd.createElement( "dictInfoGeometry" ); opt.appendChild( dd.createTextNode( QString::fromLatin1( c.dictInfoGeometry.toBase64() ) ) ); root.appendChild( opt ); diff --git a/src/config.hh b/src/config.hh index fcc365aa..7680e50c 100644 --- a/src/config.hh +++ b/src/config.hh @@ -866,7 +866,6 @@ struct Class QByteArray mainWindowState; // Binary state saved by QMainWindow QByteArray mainWindowGeometry; // Geometry saved by QMainWindow - bool mainWindowMaximized = false; MutedDictionaries mutedDictionaries; // Disabled via dictionary bar MutedDictionaries popupMutedDictionaries; // Disabled via dictionary bar in popup diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index ec87c785..40a8690e 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -746,10 +746,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ): if ( cfg.mainWindowGeometry.size() ) restoreGeometry( cfg.mainWindowGeometry ); - if ( cfg.mainWindowMaximized ) { - showMaximized(); - } - #if defined( Q_OS_LINUX ) #if ( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) ) defaultInterfaceStyle = QApplication::style()->name(); @@ -1218,7 +1214,6 @@ void MainWindow::commitData() // Save MainWindow state and geometry cfg.mainWindowState = saveState(); cfg.mainWindowGeometry = saveGeometry(); - cfg.mainWindowMaximized = isMaximized(); // Save popup window state and geometry if ( scanPopup )