From 1d4454c6eb4e8830f4ccaae2fe1359f99a1f8741 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 21 Jul 2010 18:09:22 +0000 Subject: [PATCH] Improve last commit --- src/GUI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index c73c6c859..f9180065d 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -644,7 +644,9 @@ bool GUI::event(QEvent * e) { } #ifdef Q_WS_MAC case QEvent::ToolBarChange: { - actionTop_tool_bar->setChecked(toolBar->isVisible()); + const bool is_visible = toolBar->isVisible(); + actionTop_tool_bar->setChecked(is_visible); + Preferences::setToolbarDisplayed(is_visible); break; } #endif