Skip to content

Commit

Permalink
Merge pull request #6903 from spycrab/qt_toolbar
Browse files Browse the repository at this point in the history
Qt/ToolBar: Fix checkbox not properly reflecting toolbar visibility
  • Loading branch information
leoetlino committed May 19, 2018
2 parents fc525bd + 7a8b2da commit e54880e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/DolphinQt2/ToolBar.cpp
Expand Up @@ -40,6 +40,7 @@ ToolBar::ToolBar(QWidget* parent) : QToolBar(parent)
connect(&Settings::Instance(), &Settings::DebugModeToggled, this, &ToolBar::OnDebugModeToggled);

connect(&Settings::Instance(), &Settings::ToolBarVisibilityChanged, this, &ToolBar::setVisible);
connect(this, &ToolBar::visibilityChanged, &Settings::Instance(), &Settings::SetToolBarVisible);

connect(&Settings::Instance(), &Settings::WidgetLockChanged, this,
[this](bool locked) { setMovable(!locked); });
Expand Down

0 comments on commit e54880e

Please sign in to comment.