From: Claudio Cambra Date: Tue, 6 Dec 2022 13:07:28 +0000 (+0100) Subject: Replace QDesktopServices datalocation with emulated version of it X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~99^2^2~59^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5548a4181b62c9affe8816e6104c8e4d09d63d70;p=nextcloud-desktop.git Replace QDesktopServices datalocation with emulated version of it Signed-off-by: Claudio Cambra --- 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)