Fix history not working after thread index run
This commit is contained in:
parent
20e96773e3
commit
c9cf0c9460
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.19 2006-04-04 13:49:55 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.20 2006-04-12 07:26:17 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
|
||||||
@ -483,6 +483,12 @@ void RclMain::showDocHistory()
|
|||||||
resList->resetSearch();
|
resList->resetSearch();
|
||||||
curPreview = 0;
|
curPreview = 0;
|
||||||
|
|
||||||
|
string reason;
|
||||||
|
if (!maybeOpenDb(reason)) {
|
||||||
|
QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
DocSequence *docsource;
|
DocSequence *docsource;
|
||||||
if (sortwidth > 0) {
|
if (sortwidth > 0) {
|
||||||
DocSequenceHistory myseq(rcldb, m_history, string(tr("Document history").utf8()));
|
DocSequenceHistory myseq(rcldb, m_history, string(tr("Document history").utf8()));
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.65 2006-04-11 07:14:28 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.66 2006-04-12 07:26:16 dockes Exp $ (C) 2004 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
|
||||||
@ -1435,7 +1435,7 @@ bool Db::getDoc(const string &fn, const string &ipath, Doc &doc, int *pc)
|
|||||||
// but indicate the error with pc = -1
|
// but indicate the error with pc = -1
|
||||||
if (*pc)
|
if (*pc)
|
||||||
*pc = -1;
|
*pc = -1;
|
||||||
LOGINFO(("Db:getDoc: path inexistant: [%s] length %d\n",
|
LOGINFO(("Db:getDoc: no such path in index: [%s] (len %d)\n",
|
||||||
pathterm.c_str(), pathterm.length()));
|
pathterm.c_str(), pathterm.length()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user