From 1439efc612dac1c0fbe4069a69992af2c3680253 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 15 Mar 2021 12:40:53 +0100 Subject: [PATCH] Bugfix: We fixed an issue with the promptDeleteAllFiles setting Fixes: #8484 --- changelog/unreleased/8484 | 5 +++++ src/gui/folder.cpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/8484 diff --git a/changelog/unreleased/8484 b/changelog/unreleased/8484 new file mode 100644 index 00000000000..83449532dee --- /dev/null +++ b/changelog/unreleased/8484 @@ -0,0 +1,5 @@ +Bugfix: We fixed an issue with the promptDeleteAllFiles setting + +When promptDeleteAllFiles=false is set the client will now correctly delete all files. + +https://github.com/owncloud/client/issues/8484 diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index c0ba9ed210a..651385aa313 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1193,8 +1193,10 @@ bool Folder::virtualFilesEnabled() const void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::function callback) { ConfigFile cfgFile; - if (!cfgFile.promptDeleteFiles()) + if (!cfgFile.promptDeleteFiles()) { + callback(false); return; + } const QString msg = dir == SyncFileItem::Down ? tr("All files in the sync folder '%1' folder were deleted on the server.\n" "These deletes will be synchronized to your local sync folder, making such files " "unavailable unless you have a right to restore. \n"