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

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


Author: jghali
Date: Mon Nov  2 01:58:28 2020
New Revision: 24155

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

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24155&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Mon Nov  2 01:58:28 2020
@@ -497,7 +497,7 @@
 	resize(mainWinSettings.width, mainWinSettings.height);
 
 	if (mainWinSettings.maximized)
-		this->setWindowState((this->windowState() & ~Qt::WindowMinimized) | Qt::WindowMaximized);
+		this->setWindowState((this->windowState() & ~(Qt::WindowMinimized | Qt::WindowFullScreen)) | Qt::WindowMaximized);
 
 	if (!m_prefsManager.appPrefs.uiPrefs.mainWinState.isEmpty())
 		restoreState(m_prefsManager.appPrefs.uiPrefs.mainWinState);




More information about the scribus-commit mailing list