1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00

Disable global shortcuts dialog on <= 10.5 Mac.

This commit is contained in:
John Maguire 2010-06-21 14:32:06 +00:00
parent ad4229160e
commit 7827df9397

View File

@ -413,6 +413,10 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
ui_->action_configure_global_shortcuts->setMenuRole(QAction::ApplicationSpecificRole);
// Force this menu to be the app "About".
ui_->action_about->setMenuRole(QAction::AboutRole);
if (QSysInfo::MacintoshVersion != QSysInfo::MV_SNOWLEOPARD) {
ui_->action_configure_global_shortcuts->setEnabled(false);
}
#else
tray_icon_->setContextMenu(tray_menu);
connect(tray_icon_, SIGNAL(WheelEvent(int)), SLOT(VolumeWheelEvent(int)));