|
a/src/qtgui/rclmain_w.cpp |
|
b/src/qtgui/rclmain_w.cpp |
|
... |
|
... |
775 |
if (m_queryActive) {
|
775 |
if (m_queryActive) {
|
776 |
LOGDEB(("startSearch: already active\n"));
|
776 |
LOGDEB(("startSearch: already active\n"));
|
777 |
return;
|
777 |
return;
|
778 |
}
|
778 |
}
|
779 |
m_queryActive = true;
|
779 |
m_queryActive = true;
|
|
|
780 |
restable->setEnabled(false);
|
780 |
m_source = RefCntr<DocSequence>();
|
781 |
m_source = RefCntr<DocSequence>();
|
781 |
|
782 |
|
782 |
m_searchIsSimple = issimple;
|
783 |
m_searchIsSimple = issimple;
|
783 |
|
784 |
|
784 |
// The db may have been closed at the end of indexing
|
785 |
// The db may have been closed at the end of indexing
|
785 |
string reason;
|
786 |
string reason;
|
786 |
// If indexing is being performed, we reopen the db at each query.
|
787 |
// If indexing is being performed, we reopen the db at each query.
|
787 |
if (!maybeOpenDb(reason, m_idxproc != 0)) {
|
788 |
if (!maybeOpenDb(reason, m_idxproc != 0)) {
|
788 |
QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
|
789 |
QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
|
789 |
m_queryActive = false;
|
790 |
m_queryActive = false;
|
|
|
791 |
restable->setEnabled(true);
|
790 |
return;
|
792 |
return;
|
791 |
}
|
793 |
}
|
792 |
|
794 |
|
793 |
Rcl::Query *query = new Rcl::Query(rcldb);
|
795 |
Rcl::Query *query = new Rcl::Query(rcldb);
|
794 |
query->setCollapseDuplicates(prefs.collapseDuplicates);
|
796 |
query->setCollapseDuplicates(prefs.collapseDuplicates);
|
|
... |
|
... |
874 |
}
|
876 |
}
|
875 |
|
877 |
|
876 |
statusBar()->showMessage(msg, 0);
|
878 |
statusBar()->showMessage(msg, 0);
|
877 |
QApplication::restoreOverrideCursor();
|
879 |
QApplication::restoreOverrideCursor();
|
878 |
m_queryActive = false;
|
880 |
m_queryActive = false;
|
|
|
881 |
restable->setEnabled(true);
|
879 |
emit(resultsReady());
|
882 |
emit(resultsReady());
|
880 |
}
|
883 |
}
|
881 |
|
884 |
|
882 |
void RclMain::resetSearch()
|
885 |
void RclMain::resetSearch()
|
883 |
{
|
886 |
{
|