Shows qt4 notification only if the player isn't visible
[vlc.git] / modules / gui / qt4 / main_interface.cpp
index 0dd678c..6c5a0be 100644 (file)
@@ -792,7 +792,7 @@ void MainInterface::updateSystrayTooltipName( QString name )
     else
     {
         sysTray->setToolTip( name );
-        if( notificationEnabled )
+        if( notificationEnabled && ( isHidden() || isMinimized() ) )
         {
             sysTray->showMessage( qtr( "VLC media player" ), name,
                     QSystemTrayIcon::NoIcon, 4000 );