|
a/src/qtgui/rclmain.cpp |
|
b/src/qtgui/rclmain.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.19 2006-04-04 13:49:55 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.20 2006-04-12 07:26:17 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
481 |
{
|
481 |
{
|
482 |
LOGDEB(("RclMain::showDocHistory\n"));
|
482 |
LOGDEB(("RclMain::showDocHistory\n"));
|
483 |
resList->resetSearch();
|
483 |
resList->resetSearch();
|
484 |
curPreview = 0;
|
484 |
curPreview = 0;
|
485 |
|
485 |
|
|
|
486 |
string reason;
|
|
|
487 |
if (!maybeOpenDb(reason)) {
|
|
|
488 |
QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
|
|
|
489 |
exit(1);
|
|
|
490 |
}
|
|
|
491 |
|
486 |
DocSequence *docsource;
|
492 |
DocSequence *docsource;
|
487 |
if (sortwidth > 0) {
|
493 |
if (sortwidth > 0) {
|
488 |
DocSequenceHistory myseq(rcldb, m_history, string(tr("Document history").utf8()));
|
494 |
DocSequenceHistory myseq(rcldb, m_history, string(tr("Document history").utf8()));
|
489 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
495 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
490 |
string(tr("Document history (sorted)").utf8()));
|
496 |
string(tr("Document history (sorted)").utf8()));
|