r23569 by craig - Add back state restore

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 8 21:24:43 UTC 2020


Author: craig
Date: Wed Apr  8 21:24:43 2020
New Revision: 23569

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23569
Log:
Add back state restore

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23569&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Wed Apr  8 21:24:43 2020
@@ -499,6 +499,9 @@
 		r=s->geometry();
 	move(r.left()+abs(m_prefsManager.appPrefs.uiPrefs.mainWinSettings.xPosition), r.top()+m_prefsManager.appPrefs.uiPrefs.mainWinSettings.yPosition);
 	resize(m_prefsManager.appPrefs.uiPrefs.mainWinSettings.width, m_prefsManager.appPrefs.uiPrefs.mainWinSettings.height);
+
+	if (!m_prefsManager.appPrefs.uiPrefs.mainWinState.isEmpty())
+		restoreState(m_prefsManager.appPrefs.uiPrefs.mainWinState);
 }
 
 void ScribusMainWindow::getScreenData(int& screenNumber, int& xPos, int& yPos)




More information about the scribus-commit mailing list