1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 11:30:49 +02:00

* React to single- & double-clicks on the TrayIcon.

This commit is contained in:
Christian Muehlhaeuser
2010-11-25 08:02:28 +01:00
parent 15e2db9372
commit e68e776bdf
2 changed files with 3 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ TomahawkTrayIcon::onActivated( QSystemTrayIcon::ActivationReason reason )
{ {
switch( reason ) switch( reason )
{ {
case QSystemTrayIcon::DoubleClick: case QSystemTrayIcon::Trigger:
{ {
TomahawkWindow* mainwindow = APP->mainWindow(); TomahawkWindow* mainwindow = APP->mainWindow();
if ( mainwindow->isVisible() ) if ( mainwindow->isVisible() )

View File

@@ -178,8 +178,9 @@ TomahawkWindow::closeEvent( QCloseEvent* e )
#ifndef Q_WS_MAC #ifndef Q_WS_MAC
if ( QSystemTrayIcon::isSystemTrayAvailable() ) if ( QSystemTrayIcon::isSystemTrayAvailable() )
{ {
e->ignore();
hide(); hide();
e->ignore();
return;
} }
#endif #endif