1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

Improve last commit

This commit is contained in:
Christophe Dumez 2010-07-21 18:09:22 +00:00
parent 310433fb54
commit 1d4454c6eb

View File

@ -644,7 +644,9 @@ bool GUI::event(QEvent * e) {
} }
#ifdef Q_WS_MAC #ifdef Q_WS_MAC
case QEvent::ToolBarChange: { 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; break;
} }
#endif #endif