GUI: remove misleading error message about missing helper when interning error occurs for previewing
This commit is contained in:
parent
2d8e57ee4f
commit
c562f8d949
@ -760,16 +760,10 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
|
|||||||
if (CancelCheck::instance().cancelState())
|
if (CancelCheck::instance().cancelState())
|
||||||
return false;
|
return false;
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
QString explain;
|
|
||||||
if (!lthr.missing.empty()) {
|
|
||||||
explain = QString::fromAscii("<br>") +
|
|
||||||
tr("Missing helper program: ") +
|
|
||||||
QString::fromLocal8Bit(lthr.missing.c_str());
|
|
||||||
}
|
|
||||||
QMessageBox::warning(0, "Recoll",
|
QMessageBox::warning(0, "Recoll",
|
||||||
tr("Can't turn doc into internal "
|
tr("Can't turn doc into internal "
|
||||||
"representation for ") +
|
"representation for ") +
|
||||||
fdoc.mimetype.c_str() + explain);
|
fdoc.mimetype.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Reset config just in case.
|
// Reset config just in case.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user