qt-notify only if vlc window is not visile was removed accidentally in [21845]
[vlc.git] / modules / gui / qt4 / main_interface.cpp
index 93820bb..37ba8fe 100644 (file)
@@ -826,7 +826,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 );