diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2018-01-29 16:06:12 +0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2018-01-29 16:06:12 +0300 |
commit | d24a1e542ea63fc4a0f8f728c456631a8ba56ff5 (patch) | |
tree | 19de2054051fc7929ebe83a733130cc4e04b73e4 /src/gui/application.cpp | |
parent | f4a50e88f5a387fb8b6b359ed8a7d0ae1569a813 (diff) | |
parent | 040507fce6851aa7f7d0b17aeedbdc20aa0143e9 (diff) |
Merge branch 'master' into clientSideEncryptionV3
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r-- | src/gui/application.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 544ebe805..1bf5be165 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -128,7 +128,15 @@ Application::Application(int &argc, char **argv) if (!QFileInfo(confDir).exists()) { // Migrate from version <= 2.4 setApplicationName(_theme->appNameGUI()); - QString oldDir = QStandardPaths::writableLocation(QStandardPaths::DataLocation); +#ifndef QT_WARNING_DISABLE_DEPRECATED // Was added in Qt 5.9 +#define QT_WARNING_DISABLE_DEPRECATED QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations") +#endif + QT_WARNING_PUSH + QT_WARNING_DISABLE_DEPRECATED + // We need to use the deprecated QDesktopServices::storageLocation because of its Qt4 + // behavior of adding "data" to the path + QString oldDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation); + QT_WARNING_POP setApplicationName(_theme->appName()); if (QFileInfo(oldDir).isDir()) { qCInfo(lcApplication) << "Migrating old config from" << oldDir << "to" << confDir; |