r19969 by craig - Move temp dir out of app data dir into a temp subdir

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 6 08:27:26 UTC 2015


Author: craig
Date: Mon Apr  6 08:27:26 2015
New Revision: 19969

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19969
Log:
Move temp dir out of app data dir into a temp subdir

Modified:
    trunk/Scribus/scribus/scpaths.cpp

Modified: trunk/Scribus/scribus/scpaths.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19969&path=/trunk/Scribus/scribus/scpaths.cpp
==============================================================================
--- trunk/Scribus/scribus/scpaths.cpp (original)
+++ trunk/Scribus/scribus/scpaths.cpp Mon Apr  6 08:27:26 2015
@@ -556,7 +556,11 @@
 			return tempPath;
 	}
 #endif
-	return getApplicationDataDir();
+
+	QDir tempAppDirectory(getApplicationDataDir() + "temp/");
+	if (!tempAppDirectory.exists())
+		tempAppDirectory.mkpath(tempAppDirectory.absolutePath());
+	return tempAppDirectory.absolutePath()+"/";
 }
 
 QString ScPaths::downloadDir()




More information about the scribus-commit mailing list