|
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.55 2006-12-04 09:56:26 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: main.cpp,v 1.56 2006-12-05 15:23:50 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
|
|
... |
|
... |
89 |
reason = "Internal error: db not created";
|
89 |
reason = "Internal error: db not created";
|
90 |
return false;
|
90 |
return false;
|
91 |
}
|
91 |
}
|
92 |
|
92 |
|
93 |
int qopts = Rcl::Db::QO_NONE;
|
93 |
int qopts = Rcl::Db::QO_NONE;
|
94 |
if (prefs.queryBuildAbstract) {
|
|
|
95 |
qopts |= Rcl::Db::QO_BUILD_ABSTRACT;
|
|
|
96 |
if (prefs.queryReplaceAbstract)
|
|
|
97 |
qopts |= Rcl::Db::QO_REPLACE_ABSTRACT;
|
|
|
98 |
}
|
|
|
99 |
if (prefs.queryStemLang.length() > 0)
|
94 |
if (prefs.queryStemLang.length() > 0)
|
100 |
qopts |= Rcl::Db::QO_STEM;
|
95 |
qopts |= Rcl::Db::QO_STEM;
|
101 |
if (force)
|
96 |
if (force)
|
102 |
rcldb->close();
|
97 |
rcldb->close();
|
103 |
rcldb->rmQueryDb("");
|
98 |
rcldb->rmQueryDb("");
|