]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/main_interface.cpp
Win32: fix potential error with thumbbar buttons
[vlc] / modules / gui / qt4 / main_interface.cpp
index 504d161db57f594083e2539cd18d4335e333e0dd..156a881a903d32b8df5be068e29835f686c5d237 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
     {