]> git.sesse.net Git - vlc/commitdiff
Qt: fix systrayIcon menu status to show correct tooltip and status.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 May 2009 00:46:58 +0000 (02:46 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 May 2009 00:46:58 +0000 (02:46 +0200)
Noticed by fenrir.

modules/gui/qt4/main_interface.cpp

index 22e40511704930684f5be22526dfced89215aa3d..ab0eb9ae7a1f1663c61cab7c133c5ef478aa6ca6 100644 (file)
@@ -161,6 +161,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
      ********************/
     MainInputManager::getInstance( p_intf );
 
+    /*********************************
+     * Create the Systray Management *
+     *********************************/
+    initSystray();
+
     /**************************
      * Various CONNECTs on IM *
      **************************/
@@ -197,6 +202,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
                  this, updateSystrayTooltipStatus( int ) );
     }
 
+
     /* END CONNECTS ON IM */
 
     dialogHandler = new DialogHandler (p_intf);
@@ -271,10 +277,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     updateGeometry();
     resize( sizeHint() );
 
-    /*****************************************************
-     * End everything by creating the Systray Management *
-     *****************************************************/
-    initSystray();
 }
 
 MainInterface::~MainInterface()
@@ -1094,6 +1096,7 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
                 break;
             }
     }
+    QVLCMenu::updateSystrayMenu( this, p_intf );
 }
 
 /************************************************************************