summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-03-02 22:03:23 -0600
committerDarrell Anderson <[email protected]>2013-03-02 22:03:23 -0600
commit5b329bb4172346dc3395e26469f5ea94731dc1d7 (patch)
treea64c38c8d148118895535043b8b9fa5fb549f009
parent420c78c73d2b35b815082850a6586ef1da6f7c43 (diff)
downloadgtk-qt-engine-5b329bb4172346dc3395e26469f5ea94731dc1d7.tar.gz
gtk-qt-engine-5b329bb4172346dc3395e26469f5ea94731dc1d7.zip
Change cache file location to user's TDE cache directory rather than user's root directory.
This resolves bug report 1259.
-rw-r--r--src/qt_qt_wrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index 1d78036..995b412 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -23,6 +23,8 @@
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdeconfig.h>
+#include <kglobal.h>
+#include <kstandarddirs.h>
#undef signals
#include <gdk/gdkx.h>
@@ -2022,7 +2024,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
// In order to speed it up, we can store the results in a file, along with the name of icon
// theme and style. This file can then be regenerated when the icon theme or style change.
- TQString cacheFilePath = TQDir::homeDirPath() + "/.gtk_qt_engine_rc";
+ TQString cacheFilePath = TDEGlobal::dirs()->saveLocation("cache")+"/gtk_qt_engine_rc";
TQFile cacheFile(cacheFilePath);
TQTextStream stream;