r19848 by craig - #12009: Set default doc open dir into prefs context after prefs have been set
scribus-commit
scribus-commit at lists.scribus.net
Fri Feb 20 16:26:34 UTC 2015
Author: craig
Date: Fri Feb 20 16:26:34 2015
New Revision: 19848
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19848
Log:
#12009: Set default doc open dir into prefs context after prefs have been set
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19848&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Fri Feb 20 16:26:34 2015
@@ -6437,6 +6437,12 @@
//TODO: and the other dirs?
DocDir = prefsManager->documentDir();
+ if (oldPrefs.pathPrefs.documents != newPrefs.pathPrefs.documents)
+ {
+ PrefsContext* docContext = prefsManager->prefsFile->getContext("docdirs", false);
+ docContext->set("docsopen", newPrefs.pathPrefs.documents);
+ }
+
ScQApp->neverSplash(!prefsManager->appPrefs.uiPrefs.showSplashOnStartup);
QString newUILanguage = prefsManager->uiLanguage();
More information about the scribus-commit
mailing list