Switch to unified view

a/src/qtgui/main.cpp b/src/qtgui/main.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.59 2007-05-21 13:30:21 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.60 2007-06-02 08:30:41 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
...
...
100
    for (list<string>::const_iterator it = prefs.activeExtraDbs.begin();
100
    for (list<string>::const_iterator it = prefs.activeExtraDbs.begin();
101
     it != prefs.activeExtraDbs.end(); it++) {
101
     it != prefs.activeExtraDbs.end(); it++) {
102
    LOGDEB(("main: adding [%s]\n", it->c_str()));
102
    LOGDEB(("main: adding [%s]\n", it->c_str()));
103
    rcldb->addQueryDb(*it);
103
    rcldb->addQueryDb(*it);
104
    }
104
    }
105
    if (!rcldb->isopen() && !rcldb->open(dbdir, Rcl::Db::DbRO, qopts)) {
105
    if (!rcldb->isopen() && !rcldb->open(dbdir, rclconfig->getStopfile(),
106
                   Rcl::Db::DbRO, qopts)) {
106
    reason = "Could not open database in " + 
107
    reason = "Could not open database in " + 
107
        dbdir + " wait for indexing to complete?";
108
        dbdir + " wait for indexing to complete?";
108
    return false;
109
    return false;
109
    }
110
    }
110
    rcldb->setAbstractParams(-1, prefs.syntAbsLen, prefs.syntAbsCtx);
111
    rcldb->setAbstractParams(-1, prefs.syntAbsLen, prefs.syntAbsCtx);