mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[Fix] Fixed "Allow HTML5 Storage" option
This commit is contained in:
parent
ea1eceb9d7
commit
5bc7bd472c
|
@ -322,6 +322,10 @@ void MainApplication::loadSettings()
|
|||
WebPage::UserAgent = settings.value("UserAgent", "").toString();
|
||||
settings.endGroup();
|
||||
|
||||
if (allowPersistentStorage) {
|
||||
m_websettings->enablePersistentStorage(m_activeProfil);
|
||||
}
|
||||
|
||||
m_websettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
|
||||
m_websettings->setAttribute(QWebSettings::PluginsEnabled, allowFlash);
|
||||
m_websettings->setAttribute(QWebSettings::JavascriptEnabled, allowJavaScript);
|
||||
|
@ -365,9 +369,6 @@ void MainApplication::loadSettings()
|
|||
// Allows to load files from qrc: scheme in qupzilla: pages
|
||||
QWebSecurityOrigin::addLocalScheme("qupzilla");
|
||||
|
||||
if (allowPersistentStorage) {
|
||||
m_websettings->enablePersistentStorage(m_activeProfil);
|
||||
}
|
||||
m_websettings->setMaximumPagesInCache(maxCachedPages);
|
||||
|
||||
setWheelScrollLines(scrollingLines);
|
||||
|
|
Loading…
Reference in New Issue
Block a user