r24154 by jghali - Small fix to restoration of maximized window state

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 2 01:58:11 UTC 2020


Author: jghali
Date: Mon Nov  2 01:58:11 2020
New Revision: 24154

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24154
Log:
Small fix to restoration of maximized window state

Modified:
    branches/Version14x/Scribus/scribus/prefsmanager.cpp

Modified: branches/Version14x/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24154&path=/branches/Version14x/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/prefsmanager.cpp	(original)
+++ branches/Version14x/Scribus/scribus/prefsmanager.cpp	Mon Nov  2 01:58:11 2020
@@ -924,7 +924,7 @@
 	mw->move(appPrefs.mainWinSettings.xPosition, appPrefs.mainWinSettings.yPosition);
 	mw->resize(appPrefs.mainWinSettings.width, appPrefs.mainWinSettings.height);
 	if (appPrefs.mainWinSettings.maximized)
-		mw->setWindowState((ScCore->primaryMainWindow()->windowState() & ~Qt::WindowMinimized) | Qt::WindowMaximized);
+		mw->setWindowState((ScCore->primaryMainWindow()->windowState() & ~(Qt::WindowMinimized | Qt::WindowFullScreen)) | Qt::WindowMaximized);
 	//For 1.3.5, we dump prefs first time around.
 	if (!firstTimeIgnoreOldPrefs)
 		ReadPrefsXML();




More information about the scribus-commit mailing list