Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
138
138
139
    // Stemming language combobox
139
    // Stemming language combobox
140
    stemLangCMB->clear();
140
    stemLangCMB->clear();
141
    stemLangCMB->addItem(g_stringNoStem);
141
    stemLangCMB->addItem(g_stringNoStem);
142
    stemLangCMB->addItem(g_stringAllStem);
142
    stemLangCMB->addItem(g_stringAllStem);
143
    list<string> langs;
143
    vector<string> langs;
144
    if (!getStemLangs(langs)) {
144
    if (!getStemLangs(langs)) {
145
    QMessageBox::warning(0, "Recoll", 
145
    QMessageBox::warning(0, "Recoll", 
146
                 tr("error retrieving stemming languages"));
146
                 tr("error retrieving stemming languages"));
147
    }
147
    }
148
    int cur = prefs.queryStemLang == ""  ? 0 : 1;
148
    int cur = prefs.queryStemLang == ""  ? 0 : 1;
149
    for (list<string>::const_iterator it = langs.begin(); 
149
    for (vector<string>::const_iterator it = langs.begin(); 
150
     it != langs.end(); it++) {
150
     it != langs.end(); it++) {
151
    stemLangCMB->
151
    stemLangCMB->
152
        addItem(QString::fromAscii(it->c_str(), it->length()));
152
        addItem(QString::fromAscii(it->c_str(), it->length()));
153
    if (cur == 0 && !strcmp((const char*)prefs.queryStemLang.toAscii(), 
153
    if (cur == 0 && !strcmp((const char*)prefs.queryStemLang.toAscii(), 
154
                it->c_str())) {
154
                it->c_str())) {