]> git.sesse.net Git - vlc/commitdiff
Fix a probable crash when fullscreen controllers are disabled.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 18 Aug 2008 23:58:33 +0000 (16:58 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 18 Aug 2008 23:58:33 +0000 (16:58 -0700)
modules/gui/qt4/main_interface.cpp

index f96deb8c50867601d8b3b845082f17704e108644..ba56fec402f7672d7a5b594eba92a0e4d3cfacd4 100644 (file)
@@ -829,7 +829,7 @@ void MainInterface::doComponentsUpdate()
 void MainInterface::toggleAdvanced()
 {
     controls->toggleAdvanced();
-    fullscreenControls->toggleAdvanced();
+    if( fullscreenControls ) fullscreenControls->toggleAdvanced();
 }
 
 /* Get the visibility status of the controls (hidden or not, advanced or not) */