1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Attempt to fix toolbar toggling on Mac

This commit is contained in:
Christophe Dumez 2010-07-21 23:44:29 +00:00
parent efe1655834
commit 10801f111b

View File

@ -644,9 +644,11 @@ bool GUI::event(QEvent * e) {
} }
#ifdef Q_WS_MAC #ifdef Q_WS_MAC
case QEvent::ToolBarChange: { case QEvent::ToolBarChange: {
e->accept();
const bool is_visible = toolBar->isVisible(); const bool is_visible = toolBar->isVisible();
actionTop_tool_bar->setChecked(is_visible); actionTop_tool_bar->setChecked(is_visible);
Preferences::setToolbarDisplayed(is_visible); Preferences::setToolbarDisplayed(is_visible);
return true;
break; break;
} }
#endif #endif