]> git.sesse.net Git - vlc/commitdiff
Win32: extra-safety on thumbnail toolbar
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 23:43:04 +0000 (01:43 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 23:43:42 +0000 (01:43 +0200)
modules/gui/qt4/main_interface_win32.cpp

index be786ccb6f9e6eeec8f52a4d36eb253f4d15e793..2b819072332a257b8cfd9dce8c439bc98c80889a 100644 (file)
@@ -239,6 +239,9 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
 
 void MainInterface::changeThumbbarButtons( int i_status )
 {
+    if( p_taskbl == NULL )
+        return;
+
     // Define an array of three buttons. These buttons provide images through an
     // image list and also provide tooltips.
     DWORD dwMask = THB_BITMAP | THB_FLAGS;