Use more explicit message when some topdirs are missing or empty

This commit is contained in:
Jean-Francois Dockes 2019-03-06 18:39:29 +01:00
parent 11baa59e0e
commit be57d0153a

View File

@ -217,7 +217,10 @@ bool RclMain::checkIdxPaths()
ExecCmd::backtick(args, badpaths); ExecCmd::backtick(args, badpaths);
if (!badpaths.empty()) { if (!badpaths.empty()) {
int rep = QMessageBox::warning( int rep = QMessageBox::warning(
0, tr("Bad paths"), tr("Bad paths in configuration file:\n") + 0, tr("Bad paths"),
tr("Empty or non-existant paths in configuration file. "
"Click Ok to start indexing anyway "
"(absent data will not be purged from the index):\n") +
QString::fromLocal8Bit(badpaths.c_str()), QString::fromLocal8Bit(badpaths.c_str()),
QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::NoButton); QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::NoButton);
if (rep == QMessageBox::Cancel) if (rep == QMessageBox::Cancel)