Cleanup after pull reuqest #4389
Do not make the SyncEngine depends on the ConfigFile
void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction, bool *cancel)
{
+ ConfigFile cfgFile;
+ if (!cfgFile.promptDeleteFiles())
+ return;
+
QString msg =
tr("This sync would remove all the files in the sync folder '%1'.\n"
"This might be because the folder was silently reconfigured, or that all "
#include "syncfilestatus.h"
#include "csync_private.h"
#include "filesystem.h"
-#include "configfile.h"
#ifdef Q_OS_WIN
#include <windows.h>
}
}
- // Check the config file before displaying prompt in case it is disabled.
- ConfigFile cfgFile;
- if (!_hasNoneFiles && _hasRemoveFile && cfgFile.promptDeleteFiles()) {
+ if (!_hasNoneFiles && _hasRemoveFile) {
qDebug() << Q_FUNC_INFO << "All the files are going to be changed, asking the user";
bool cancel = false;
emit aboutToRemoveAllFiles(_syncedItems.first()->_direction, &cancel);