From 5548a4181b62c9affe8816e6104c8e4d09d63d70 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 6 Dec 2022 14:07:28 +0100 Subject: [PATCH] Replace QDesktopServices datalocation with emulated version of it Signed-off-by: Claudio Cambra --- src/gui/accountmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index c8f71dbaa..9ca69858e 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -150,7 +150,7 @@ bool AccountManager::restoreFromLegacySettings() // then try to load settings from a very old place if (settings->childKeys().isEmpty()) { // Legacy settings used QDesktopServices to get the location for the config folder in 2.4 and before - const auto legacy2_4CfgSettingsLocation = QDesktopServices::storageLocation(QDesktopServices::DataLocation); + const auto legacy2_4CfgSettingsLocation = QString(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/data")); const auto legacy2_4CfgFileParentFolder = legacy2_4CfgSettingsLocation.left(legacy2_4CfgSettingsLocation.lastIndexOf('/')); // 2.5+ (rest of 2.x series) -- 2.30.2