Skip to content

Commit

Permalink
Bugfix: We fixed an issue with the promptDeleteAllFiles setting
Browse files Browse the repository at this point in the history
Fixes: #8484
  • Loading branch information
TheOneRing committed Mar 18, 2021
1 parent c6edad0 commit 1439efc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/8484
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,10 @@ bool Folder::virtualFilesEnabled() const
void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::function<void(bool)> 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"
Expand Down

0 comments on commit 1439efc

Please sign in to comment.