From 10801f111bfc7a257a300db6b513cb37deee14f2 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 21 Jul 2010 23:44:29 +0000 Subject: [PATCH] Attempt to fix toolbar toggling on Mac --- src/GUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI.cpp b/src/GUI.cpp index f9180065d..3f4514941 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -644,9 +644,11 @@ bool GUI::event(QEvent * e) { } #ifdef Q_WS_MAC case QEvent::ToolBarChange: { + e->accept(); const bool is_visible = toolBar->isVisible(); actionTop_tool_bar->setChecked(is_visible); Preferences::setToolbarDisplayed(is_visible); + return true; break; } #endif