Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.25 2007-02-14 10:10:43 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.26 2007-05-21 14:26:19 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
...
...
361
void RclMain::startSearch(RefCntr<Rcl::SearchData> sdata)
361
void RclMain::startSearch(RefCntr<Rcl::SearchData> sdata)
362
{
362
{
363
    LOGDEB(("RclMain::startSearch\n"));
363
    LOGDEB(("RclMain::startSearch\n"));
364
    // The db may have been closed at the end of indexing
364
    // The db may have been closed at the end of indexing
365
    string reason;
365
    string reason;
366
    // If indexing is being performed, we reopen the db at each query.
366
    if (!maybeOpenDb(reason)) {
367
    if (!maybeOpenDb(reason, indexingdone == 0)) {
367
    QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
368
    QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
368
    exit(1);
369
    exit(1);
369
    }
370
    }
370
371
371
    resList->resetSearch();
372
    resList->resetSearch();