try to improve error message for internfile failure
This commit is contained in:
parent
38604c239b
commit
f20870e4cf
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.12 2006-12-20 13:55:46 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.13 2006-12-20 14:09:21 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -485,6 +485,7 @@ class LoadThread : public QThread {
|
|||||||
// a search term of course.
|
// a search term of course.
|
||||||
*statusp = 0;
|
*statusp = 0;
|
||||||
} else {
|
} else {
|
||||||
|
out->mimetype = interner.get_mimetype();
|
||||||
*statusp = -1;
|
*statusp = -1;
|
||||||
}
|
}
|
||||||
} catch (CancelExcept) {
|
} catch (CancelExcept) {
|
||||||
@ -587,7 +588,7 @@ bool Preview::loadFileInCurrentTab(string fn, size_t sz, const Rcl::Doc &idoc,
|
|||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
QMessageBox::warning(0, "Recoll",
|
QMessageBox::warning(0, "Recoll",
|
||||||
tr("Can't turn doc into internal rep for ") +
|
tr("Can't turn doc into internal rep for ") +
|
||||||
doc.mimetype.c_str());
|
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