Win32: fix potential error with thumbbar buttons
authorGeoffroy Couprie <geal@videolan.org>
Sat, 22 Aug 2009 13:18:07 +0000 (15:18 +0200)
committerGeoffroy Couprie <geal@videolan.org>
Sun, 6 Sep 2009 17:36:03 +0000 (19:36 +0200)
modules/gui/qt4/main_interface.cpp

index 504d161..156a881 100644 (file)
@@ -360,8 +360,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
             if(S_OK != p_taskbl->vt->ThumbBarAddButtons(p_taskbl, GetForegroundWindow(), 3, thbButtons))
                 msg_Err( p_intf, "ThumbBarAddButtons failed with error %08x", GetLastError() );
 
+            CONNECT( THEMIM->getIM(), statusChanged( int ), this, changeThumbbarButtons( int ) );
         }
-        CONNECT( THEMIM->getIM(), statusChanged( int ), this, changeThumbbarButtons( int ) );
     }
     else
     {