qt-notify only if vlc window is not visile was removed accidentally in [21845]
authorRafaël Carré <funman@videolan.org>
Wed, 12 Sep 2007 22:13:11 +0000 (22:13 +0000)
committerRafaël Carré <funman@videolan.org>
Wed, 12 Sep 2007 22:13:11 +0000 (22:13 +0000)
modules/gui/qt4/main_interface.cpp

index 93820bb..37ba8fe 100644 (file)
@@ -826,7 +826,7 @@ void MainInterface::updateSystrayTooltipName( QString name )
     else
     {
         sysTray->setToolTip( name );
     else
     {
         sysTray->setToolTip( name );
-        if( notificationEnabled )
+        if( notificationEnabled && ( isHidden() || isMinimized() ) )
         {
             sysTray->showMessage( qtr( "VLC media player" ), name,
                     QSystemTrayIcon::NoIcon, 4000 );
         {
             sysTray->showMessage( qtr( "VLC media player" ), name,
                     QSystemTrayIcon::NoIcon, 4000 );