Qt4 - Fix some sizing in open dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jan 2008 01:53:51 +0000 (01:53 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jan 2008 01:53:51 +0000 (01:53 +0000)
modules/gui/qt4/dialogs/open.cpp

index fb0f31c..086099b 100644 (file)
@@ -225,7 +225,8 @@ void OpenDialog::toggleAdvancedPanel()
     {
         ui.advancedFrame->hide();
         //FIXME: Clear Bug here. Qt ?
-        resize( size().width(), size().height() - ui.advancedFrame->height() );
+        if( size().isValid() )
+            resize( size().width(), size().height() - ui.advancedFrame->height() );
     }
     else
     {