Switch to unified view

a/src/qtgui/confgui/confgui.cpp b/src/qtgui/confgui/confgui.cpp
...
...
374
}
374
}
375
375
376
void ConfParamSLW::listToConf()
376
void ConfParamSLW::listToConf()
377
{
377
{
378
    list<string> ls;
378
    list<string> ls;
379
    LOGDEB2(("ConfParamSLW::listToConf. m_fsencoding %d\n", int(m_fsencoding)));
379
    for (int i = 0; i < m_lb->count(); i++) {
380
    for (int i = 0; i < m_lb->count(); i++) {
380
        // General parameters are encoded as utf-8. File names as
381
        // General parameters are encoded as utf-8. File names as
381
        // local8bit There is no hope for 8bit file names anyway
382
        // local8bit There is no hope for 8bit file names anyway
382
        // except for luck: the original encoding is unknown.
383
        // except for luck: the original encoding is unknown.
384
        // As a special Windows hack, if fsencoding is set, we convert
385
        // backslashes to slashes. This is an awful hack because
386
        // fsencoding does not necessarily imply that the values are
387
        // paths, and it will come back to haunt us one day.
383
    QString text = m_lb->item(i)->text();
388
    QString text = m_lb->item(i)->text();
384
        if (m_fsencoding)
389
        if (m_fsencoding) {
390
#ifdef _WIN32
391
            string pth((const char *)(text.toLocal8Bit()));
392
            path_slashize(pth);
393
            ls.push_back(pth);
394
#else
385
            ls.push_back((const char *)(text.toLocal8Bit()));
395
            ls.push_back((const char *)(text.toLocal8Bit()));
396
#endif
386
        else
397
        } else {
387
            ls.push_back((const char *)(text.toUtf8()));
398
            ls.push_back((const char *)(text.toUtf8()));
399
        }
388
    }
400
    }
389
    string s;
401
    string s;
390
    stringsToString(ls, s);
402
    stringsToString(ls, s);
391
    m_cflink->set(s);
403
    m_cflink->set(s);
392
}
404
}