From: Olivier Goffart Date: Fri, 3 Jun 2016 11:10:01 +0000 (+0200) Subject: Folder: fix removing folder with escaped characters (#4943) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1160^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b99c8fe28b8586cff5bed1297c501dbea60a7c81;p=nextcloud-desktop.git Folder: fix removing folder with escaped characters (#4943) FolderDefinition::save and load escapes the alias. We also need to escape it when we remove it. New folder can't be created with alias that needs escaping, but old folder from old config may still exist, and we must allow user to delete them. --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 518859fe4..0a88c68c9 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -631,7 +631,7 @@ void Folder::removeFromSettings() const { auto settings = _accountState->settings(); settings->beginGroup(QLatin1String("Folders")); - settings->remove(_definition.alias); + settings->remove(FolderMan::escapeAlias(_definition.alias)); } bool Folder::isFileExcludedAbsolute(const QString& fullPath) const