GUI: improve error message for unaccessible/garbled history file
This commit is contained in:
parent
da539f3b6e
commit
ab9107360b
@ -262,7 +262,7 @@ int main(int argc, char **argv)
|
|||||||
string historyfile = path_cat(theconfig->getConfDir(), "history");
|
string historyfile = path_cat(theconfig->getConfDir(), "history");
|
||||||
g_dynconf = new RclDynConf(historyfile);
|
g_dynconf = new RclDynConf(historyfile);
|
||||||
if (!g_dynconf || !g_dynconf->ok()) {
|
if (!g_dynconf || !g_dynconf->ok()) {
|
||||||
QString msg = app.translate("Main", "Configuration problem (dynconf");
|
QString msg = app.translate("Main", "\"history\" file is damaged or un(read)writeable, please check or remove it: ") + QString::fromLocal8Bit(historyfile.c_str());
|
||||||
QMessageBox::critical(0, "Recoll", msg);
|
QMessageBox::critical(0, "Recoll", msg);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user