diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-08 05:47:26 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-08 05:47:26 +0000 |
| commit | bc8358be7b87e5d66111ebda4ee08557c6e2c76d (patch) | |
| tree | 668034aa1d149ca6e5960a66f8b05af46d7f8155 /examples/GuiClient/utils.cpp | |
| parent | a9aa8c325e99d8d3f8cb010485c339d5ea40c6aa (diff) | |
| download | qxmpp-bc8358be7b87e5d66111ebda4ee08557c6e2c76d.tar.gz | |
use appropriate storage location
Diffstat (limited to 'examples/GuiClient/utils.cpp')
| -rw-r--r-- | examples/GuiClient/utils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/GuiClient/utils.cpp b/examples/GuiClient/utils.cpp index 98c02da6..cfb5b029 100644 --- a/examples/GuiClient/utils.cpp +++ b/examples/GuiClient/utils.cpp @@ -101,10 +101,12 @@ QString presenceToStatusText(const QXmppPresence& presence) QString getSettingsDir(const QString& bareJid) { + QString dir = QDesktopServices::storageLocation(QDesktopServices::DataLocation); + dir.append("/qxmpp"); if(bareJid.isEmpty()) - return "appCache/"; + return dir + "/"; else - return QString("appCache/%1/").arg(bareJid); + return QString(dir + "/%1/").arg(bareJid); } QString getImageHash(const QByteArray& image) |
