Permalink
Browse files

Merge pull request #6714 from spycrab/qt_fix_toolbar

Qt/ToolBar: Fix inconsistencies
  • Loading branch information...
lioncash committed Apr 29, 2018
2 parents cad7d2c + dd6ac93 commit d8b56af342def65a4b0851ab0dc935bde642ced0
Showing with 2 additions and 1 deletion.
  1. +1 −1 Source/Core/DolphinQt2/Settings.cpp
  2. +1 −0 Source/Core/DolphinQt2/ToolBar.cpp
@@ -399,7 +399,7 @@ void Settings::SetToolBarVisible(bool visible)
bool Settings::IsToolBarVisible() const
{
return GetQSettings().value(QStringLiteral("toolbar/visible")).toBool();
return GetQSettings().value(QStringLiteral("toolbar/visible"), true).toBool();
}
void Settings::SetWidgetsLocked(bool locked)
@@ -21,6 +21,7 @@ ToolBar::ToolBar(QWidget* parent) : QToolBar(parent)
setMovable(!Settings::Instance().AreWidgetsLocked());
setFloatable(false);
setIconSize(ICON_SIZE);
setVisible(Settings::Instance().IsToolBarVisible());
setWindowTitle(tr("Toolbar"));
setObjectName(QStringLiteral("toolbar"));

0 comments on commit d8b56af

Please sign in to comment.