qt4: fix a segfault
authorRafaël Carré <funman@videolan.org>
Tue, 16 Oct 2007 14:18:21 +0000 (14:18 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 16 Oct 2007 14:18:21 +0000 (14:18 +0000)
modules/gui/qt4/main_interface.cpp

index c7fe262..93e2a98 100644 (file)
@@ -403,7 +403,7 @@ void MainInterface::calculateInterfaceSize()
         width  = PREF_W - addSize.width();
         height = PREF_H - addSize.height();
     }
-    if( !dockPL->isFloating() )
+    if( !dockPL->isFloating() && dockPL->widget() )
     {
         width  += dockPL->widget()->width();
         height += dockPL->widget()->height();