Warn if config file contains non-existing paths. Fixes issue #244

This commit is contained in:
Jean-Francois Dockes
2015-06-08 10:14:11 +02:00
parent 3932a25aa2
commit 4989d1f991
2 changed files with 68 additions and 3 deletions
+18
View File
@@ -887,6 +887,24 @@ void RclMain::toggleIndexing()
m_firstIndexing = !theconfig->getMissingHelperDesc(mhd);
vector<string> args;
string badpaths;
args.push_back("recollindex");
args.push_back("-E");
ExecCmd::backtick(args, badpaths);
if (!badpaths.empty()) {
int rep =
QMessageBox::warning(0, tr("Bad paths"),
tr("Bad paths in configuration file:\n") +
QString::fromLocal8Bit(badpaths.c_str()),
QMessageBox::Ok,
QMessageBox::Cancel,
QMessageBox::NoButton);
if (rep == QMessageBox::Cancel)
return;
}
args.clear();
args.push_back("-c");
args.push_back(theconfig->getConfDir());
if (fileRetryFailedAction->isChecked())