Browse Source

Should fix toolbar toggling on mac

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
52f25c44eb
  1. 5
      src/GUI.cpp

5
src/GUI.cpp

@ -645,13 +645,12 @@ bool GUI::event(QEvent * e) { @@ -645,13 +645,12 @@ bool GUI::event(QEvent * e) {
#ifdef Q_WS_MAC
case QEvent::ToolBarChange: {
qDebug("MAC: Received a toolbar change event!")
e->accept();
bool ret = QMainWindow::event(e);
const bool is_visible = toolBar->isVisible();
qDebug("MAC: new toolbar visibility is %d", (int)is_visible);
actionTop_tool_bar->setChecked(is_visible);
Preferences::setToolbarDisplayed(is_visible);
return true;
break;
return ret;
}
#endif
default:

Loading…
Cancel
Save