handle removed docs in history

This commit is contained in:
dockes
2006-01-12 09:13:55 +00:00
parent 45af3d3651
commit 0e3e91853d
2 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -486,9 +486,9 @@ void RecollMain::showResultPage()
doc.erase();
if (!docsource->getDoc(reslist_winfirst + i, doc, &percent, &sh)) {
if (i == 0)
reslist_winfirst = -1;
break;
// This may very well happen for history if the doc has
// been removed since. So don't treat it as fatal.
doc.abstract = string(tr("Unavailable document").utf8());
}
if (i == 0) {
// Display header