Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 543590 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/plugins/hunspell/hunspellclient.cpp (-1 / +1 lines)
Lines 46-52 SpellerPlugin *HunspellClient::createSpeller(const QString &language) Link Here
46
QStringList HunspellClient::languages() const
46
QStringList HunspellClient::languages() const
47
{
47
{
48
    QStringList lst;
48
    QStringList lst;
49
    QDir dir(QStringLiteral("/usr/share/myspell/dicts/"));
49
    QDir dir(QStringLiteral("/usr/share/myspell/"));
50
    if (dir.exists()) {
50
    if (dir.exists()) {
51
        QStringList lstDic = dir.entryList(QStringList(QStringLiteral("*.dic")), QDir::Files);
51
        QStringList lstDic = dir.entryList(QStringList(QStringLiteral("*.dic")), QDir::Files);
52
        foreach (const QString &tmp, lstDic) {
52
        foreach (const QString &tmp, lstDic) {
(-)a/src/plugins/hunspell/hunspelldict.cpp (-2 / +2 lines)
Lines 30-38 HunspellDict::HunspellDict(const QString &lang) Link Here
30
    : SpellerPlugin(lang), m_speller(0)
30
    : SpellerPlugin(lang), m_speller(0)
31
{
31
{
32
    qDebug() << " HunspellDict::HunspellDict( const QString& lang ):" << lang;
32
    qDebug() << " HunspellDict::HunspellDict( const QString& lang ):" << lang;
33
    QString dic = QStringLiteral("/usr/share/myspell/dicts/%1.dic").arg(lang);
33
    QString dic = QStringLiteral("/usr/share/myspell/%1.dic").arg(lang);
34
    if (QFileInfo(dic).exists()) {
34
    if (QFileInfo(dic).exists()) {
35
        m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/dicts/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
35
        m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
36
    } else {
36
    } else {
37
        m_speller = 0;
37
        m_speller = 0;
38
    }
38
    }

Return to bug 543590