1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Fixed regression from 85d09c8a64

- crashing with disabled adblock icon
- thanks to @ff2000
This commit is contained in:
nowrep 2012-12-02 00:59:17 +01:00
parent 60792f3762
commit 1add5b51ca

View File

@ -586,10 +586,9 @@ void QupZilla::loadSettings()
settings.beginGroup("Shortcuts");
m_useTabNumberShortcuts = settings.value("useTabNumberShortcuts", true).toBool();
m_useSpeedDialNumberShortcuts = settings.value("useSpeedDialNumberShortcuts", true).toBool();
bool adBlockEnabled = settings.value("AdBlock/enabled", true).toBool();
settings.endGroup();
m_adblockIcon->setEnabled(adBlockEnabled);
m_adblockIcon->setEnabled(settings.value("AdBlock/enabled", true).toBool());
statusBar()->setVisible(showStatusBar);
m_bookmarksToolbar->setVisible(showBookmarksToolbar);