summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/util/qdesktopservices_qws.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/util/qdesktopservices_qws.cpp b/src/gui/util/qdesktopservices_qws.cpp
index b8b011d..a018528 100644
--- a/src/gui/util/qdesktopservices_qws.cpp
+++ b/src/gui/util/qdesktopservices_qws.cpp
@@ -61,6 +61,11 @@ static bool openDocument(const QUrl &file)
QString QDesktopServices::storageLocation(StandardLocation type)
{
+ if (type == QDesktopServices::HomeLocation)
+ return QDir::homePath();
+ if (type == QDesktopServices::TempLocation)
+ return QDir::tempPath();
+
if (type == DataLocation) {
QString qwsDataHome = QLatin1String(qgetenv("QWS_DATA_HOME"));
if (qwsDataHome.isEmpty())