Qt4 - Open. Fix segfault under windows. Still need to find out to hide those buttons...
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Mar 2007 23:40:09 +0000 (23:40 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Mar 2007 23:40:09 +0000 (23:40 +0000)
modules/gui/qt4/components/open.cpp

index 9e2f3fd..4a485f3 100644 (file)
@@ -66,7 +66,9 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
 
     // But hide the two OK/Cancel buttons. Enable them for debug.
+#ifndef WIN32
     findChild<QDialogButtonBox*>()->hide();
+#endif
 
     /* Ugly hacks to get the good Widget */
     //This lineEdit is the normal line in the fileDialog.