Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-07-06 12:30:02 +0300
committerHannah von Reth <vonreth@kde.org>2021-07-06 13:01:00 +0300
commite79411a7567ad1e6a4eca41adf1d78b7c4c31ec4 (patch)
treee207f3497682162b3d6b2ab160d270fbae7d526d /src/gui/folder.cpp
parent68c68cbd8dcba0353cc39b4ed3864fe0cd9e083b (diff)
Rename confusing callback
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r--src/gui/folder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index d4c23bfca..00d3846a5 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -1184,11 +1184,11 @@ bool Folder::virtualFilesEnabled() const
return _definition.virtualFilesMode != Vfs::Off && !isVfsOnOffSwitchPending();
}
-void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::function<void(bool)> callback)
+void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::function<void(bool)> abort)
{
ConfigFile cfgFile;
if (!cfgFile.promptDeleteFiles()) {
- callback(false);
+ abort(false);
return;
}
const QString msg = dir == SyncFileItem::Down ? tr("All files in the sync folder '%1' folder were deleted on the server.\n"
@@ -1208,9 +1208,9 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::functio
QPushButton *keepBtn = msgBox->addButton(tr("Keep files"), QMessageBox::AcceptRole);
bool oldPaused = syncPaused();
setSyncPaused(true);
- connect(msgBox, &QMessageBox::finished, this, [msgBox, keepBtn, callback, oldPaused, this] {
+ connect(msgBox, &QMessageBox::finished, this, [msgBox, keepBtn, abort, oldPaused, this] {
const bool cancel = msgBox->clickedButton() == keepBtn;
- callback(cancel);
+ abort(cancel);
if (cancel) {
FileSystem::setFolderMinimumPermissions(path());
journalDb()->clearFileTable();