]> git.sesse.net Git - vlc/commitdiff
Don't hide the name in the status bar. Oups.
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 11 May 2007 23:17:14 +0000 (23:17 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 11 May 2007 23:17:14 +0000 (23:17 +0000)
modules/gui/qt4/main_interface.cpp

index 22679fe44d70c6b077db2bfd2bae0e3bd99c7212..1548e7d292cc7a98da8184905961b199bd4560fc 100644 (file)
@@ -129,11 +129,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
              slider, setPosition( float,int, int ) );
     CONNECT( THEMIM->getIM(), positionUpdated( float, int, int ),
              this, setDisplay( float, int, int ) );
-    if( config_GetInt( p_intf, "qt-name-in-title" ) )
-    {
-        CONNECT( THEMIM->getIM(), nameChanged( QString ), this,
-                 setName( QString ) );
-    }
+    CONNECT( THEMIM->getIM(), nameChanged( QString ), this,
+             setName( QString ) );
     CONNECT( THEMIM->getIM(), statusChanged( int ), this, setStatus( int ) );
     CONNECT( THEMIM->getIM(), statusChanged( int ), this,
              updateSystrayMenu( int ) );
@@ -726,7 +723,11 @@ void MainInterface::setDisplay( float pos, int time, int length )
 void MainInterface::setName( QString name )
 {
     nameLabel->setText( " " + name+" " );
-    setVLCWindowsTitle( name );
+    
+    if( config_GetInt( p_intf, "qt-name-in-title" ) )
+    {
+        setVLCWindowsTitle( name );
+    }
 }
 
 void MainInterface::setStatus( int status )