]> git.sesse.net Git - vlc/commitdiff
Fix one segfault when systray is not used
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 24 Aug 2007 23:25:31 +0000 (23:25 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 24 Aug 2007 23:25:31 +0000 (23:25 +0000)
Remove useless tests

modules/gui/qt4/main_interface.cpp

index 011bc62feca1c7ec94d419d08f56d29afa4dd5e3..9441ebf48539a07d78d290b29ed4a9768448ca52 100644 (file)
@@ -188,7 +188,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* Naming in the controller */
     CONNECT( THEMIM->getIM(), nameChanged( QString ), this,
              setName( QString ) );
-    if( config_GetInt( p_intf, "qt-system-tray" ) && sysTray )
+    if( sysTray )
     {
         CONNECT( THEMIM->getIM(), nameChanged( QString ), this,
                  updateSystrayTooltipName( QString ) );
@@ -201,7 +201,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 
     /* PLAY_STATUS */
     CONNECT( THEMIM->getIM(), statusChanged( int ), this, setStatus( int ) );
-    if( config_GetInt( p_intf, "qt-system-tray" ) && sysTray )
+    if( sysTray )
     {
         CONNECT( THEMIM->getIM(), statusChanged( int ), this,
                  updateSystrayTooltipStatus( int ) );
@@ -887,7 +887,7 @@ void MainInterface::setName( QString name )
 void MainInterface::setStatus( int status )
 {
     controls->setStatus( status );
-    if( systrayMenu )
+    if( sysTray )
         updateSystrayMenu( status );
 }