1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

macOS: Fix paths of qtwebengine_dictionaries (#2261)

This commit is contained in:
srazi 2017-03-18 02:39:25 +03:30
parent dfb5a5d0f3
commit 1d0d555ed1

View File

@ -420,8 +420,8 @@ Preferences::Preferences(BrowserWindow* window)
QStringList dictionariesDirs = {
#ifdef Q_OS_OSX
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Contents/Resources/qtwebengine_dictionaries")),
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Contents/Frameworks/QtWebEngineCore.framework/Resources/qtwebengine_dictionaries"))
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Resources/qtwebengine_dictionaries")),
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Frameworks/QtWebEngineCore.framework/Resources/qtwebengine_dictionaries"))
#else
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/qtwebengine_dictionaries")),
QDir::cleanPath(QLibraryInfo::location(QLibraryInfo::DataPath) + QL1S("/qtwebengine_dictionaries"))
@ -1005,7 +1005,6 @@ void Preferences::saveSettings()
settings.setValue("Position", m_notification.data() ? m_notification.data()->pos() : m_notifPosition);
settings.endGroup();
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
//SPELLCHECK
settings.beginGroup(QSL("SpellCheck"));
settings.setValue("Enabled", ui->spellcheckEnabled->isChecked());
@ -1018,7 +1017,6 @@ void Preferences::saveSettings()
}
settings.setValue("Languages", languages);
settings.endGroup();
#endif
//OTHER
//AddressBar