|
a/src/qtgui/ssearch_w.cpp |
|
b/src/qtgui/ssearch_w.cpp |
|
... |
|
... |
297 |
if (tmres.entries.size() == 1) {
|
297 |
if (tmres.entries.size() == 1) {
|
298 |
res = QString::fromUtf8(tmres.entries.begin()->term.c_str());
|
298 |
res = QString::fromUtf8(tmres.entries.begin()->term.c_str());
|
299 |
ok = true;
|
299 |
ok = true;
|
300 |
} else {
|
300 |
} else {
|
301 |
QStringList lst;
|
301 |
QStringList lst;
|
302 |
for (list<Rcl::TermMatchEntry>::iterator it = tmres.entries.begin();
|
302 |
for (vector<Rcl::TermMatchEntry>::iterator it = tmres.entries.begin();
|
303 |
it != tmres.entries.end(); it++) {
|
303 |
it != tmres.entries.end(); it++) {
|
304 |
lst.push_back(QString::fromUtf8(it->term.c_str()));
|
304 |
lst.push_back(QString::fromUtf8(it->term.c_str()));
|
305 |
}
|
305 |
}
|
306 |
res = QInputDialog::getItem (this, tr("Completions"),
|
306 |
res = QInputDialog::getItem (this, tr("Completions"),
|
307 |
tr("Select an item:"),
|
307 |
tr("Select an item:"),
|