1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Fixed some small issues when re-loading settings.

This commit is contained in:
S. Razi Alavizadeh 2014-01-02 15:40:23 +03:30
parent 1fd1691ee2
commit 68cdba9e3a
2 changed files with 3 additions and 2 deletions

View File

@ -817,10 +817,10 @@ void QupZilla::loadSettings()
m_adblockIcon->setEnabled(settings.value("AdBlock/enabled", true).toBool()); m_adblockIcon->setEnabled(settings.value("AdBlock/enabled", true).toBool());
statusBar()->setVisible(showStatusBar); statusBar()->setVisible(!isFullScreen() && showStatusBar);
m_bookmarksToolbar->setVisible(showBookmarksToolbar); m_bookmarksToolbar->setVisible(showBookmarksToolbar);
m_navigationBar->setVisible(showNavigationToolbar); m_navigationBar->setVisible(showNavigationToolbar);
menuBar()->setVisible(showMenuBar); menuBar()->setVisible(!isFullScreen() && showMenuBar);
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
m_navigationBar->setSuperMenuVisible(!showMenuBar); m_navigationBar->setSuperMenuVisible(!showMenuBar);

View File

@ -93,6 +93,7 @@ void TabBar::loadSettings()
settings.endGroup(); settings.endGroup();
setSelectionBehaviorOnRemove(activateLastTab ? QTabBar::SelectPreviousTab : QTabBar::SelectRightTab); setSelectionBehaviorOnRemove(activateLastTab ? QTabBar::SelectPreviousTab : QTabBar::SelectRightTab);
setVisible(!(count() == 1 && m_hideTabBarWithOneTab));
setUpLayout(); setUpLayout();
} }