Disable system tray icon on Mac OS X

This commit is contained in:
Christophe Dumez 2012-02-22 20:06:11 +02:00
parent a5452d04ae
commit 5f5382297c
3 changed files with 9 additions and 1 deletions

View file

@ -1002,7 +1002,7 @@ void MainWindow::loadPreferences(bool configure_session) {
QBtSession::instance()->addConsoleMessage(tr("Options were saved successfully."));
const Preferences pref;
const bool newSystrayIntegration = pref.systrayIntegration();
actionLock_qBittorrent->setEnabled(newSystrayIntegration);
actionLock_qBittorrent->setVisible(newSystrayIntegration);
if (newSystrayIntegration != (systrayIcon!=0)) {
if (newSystrayIntegration) {
// create the trayicon