From 7a8b2da55e06ebb31364a3dbd52a87b29fe962bf Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 19 May 2018 15:50:21 +0200 Subject: [PATCH] Qt/ToolBar: Fix checkbox not properly reflecting toolbar visibility --- Source/Core/DolphinQt2/ToolBar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/DolphinQt2/ToolBar.cpp b/Source/Core/DolphinQt2/ToolBar.cpp index 58a60bd5cc..28956bf086 100644 --- a/Source/Core/DolphinQt2/ToolBar.cpp +++ b/Source/Core/DolphinQt2/ToolBar.cpp @@ -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); });