|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.10 2006-11-10 13:32:08 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.11 2006-11-21 08:47:51 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
|
|
... |
|
... |
99 |
|
99 |
|
100 |
// Stemming language combobox
|
100 |
// Stemming language combobox
|
101 |
stemLangCMB->clear();
|
101 |
stemLangCMB->clear();
|
102 |
stemLangCMB->insertItem(tr("(no stemming)"));
|
102 |
stemLangCMB->insertItem(tr("(no stemming)"));
|
103 |
list<string> langs;
|
103 |
list<string> langs;
|
104 |
string reason;
|
104 |
if (!getStemLangs(langs)) {
|
105 |
if (!maybeOpenDb(reason)) {
|
105 |
QMessageBox::warning(0, "Recoll",
|
106 |
QMessageBox::critical(0, "Recoll", QString(reason.c_str()));
|
106 |
tr("error retrieving stemming languages"));
|
107 |
exit(1);
|
|
|
108 |
}
|
107 |
}
|
109 |
langs = rcldb->getStemLangs();
|
|
|
110 |
int i = 0, cur = -1;
|
108 |
int i = 0, cur = -1;
|
111 |
for (list<string>::const_iterator it = langs.begin();
|
109 |
for (list<string>::const_iterator it = langs.begin();
|
112 |
it != langs.end(); it++) {
|
110 |
it != langs.end(); it++) {
|
113 |
stemLangCMB->
|
111 |
stemLangCMB->
|
114 |
insertItem(QString::fromAscii(it->c_str(), it->length()));
|
112 |
insertItem(QString::fromAscii(it->c_str(), it->length()));
|