Configuration default value is set to false because users are getting
the popup message too often.
Signed-off-by: Camila San <hello@camila.codes>
bool ConfigFile::promptDeleteFiles() const
{
QSettings settings(configFile(), QSettings::IniFormat);
- return settings.value(QLatin1String(promptDeleteC), true).toBool();
+ return settings.value(QLatin1String(promptDeleteC), false).toBool();
}
void ConfigFile::setPromptDeleteFiles(bool promptDeleteFiles)
#include "propagateremotedelete.h"
#include "propagatedownload.h"
#include "common/asserts.h"
+#include "configfile.h"
+
#ifdef Q_OS_WIN
#include <windows.h>
}
}
- if (!_hasNoneFiles && _hasRemoveFile) {
+ ConfigFile cfgFile;
+ if (!_hasNoneFiles && _hasRemoveFile && cfgFile.promptDeleteFiles()) {
qCInfo(lcEngine) << "All the files are going to be changed, asking the user";
bool cancel = false;
emit aboutToRemoveAllFiles(syncItems.first()->_direction, &cancel);