From 3100140ed28874657df286b95f13fe7429675e9d Mon Sep 17 00:00:00 2001
From: Cyril Deguet <asmax@videolan.org>
Date: Sun, 25 Apr 2004 13:35:56 +0000
Subject: [PATCH]   * dialogs.cpp: put NULL for the parent window argument of
 WX dialogs in   the dialog provider: fixes tons of errors such as  
 "Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion `gc
 != NULL' failed" and incorrect behaviour of the dialogs.

---
 modules/gui/wxwindows/dialogs.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/wxwindows/dialogs.cpp b/modules/gui/wxwindows/dialogs.cpp
index ba509bc970e9..122c0d00904b 100644
--- a/modules/gui/wxwindows/dialogs.cpp
+++ b/modules/gui/wxwindows/dialogs.cpp
@@ -304,7 +304,7 @@ void DialogsProvider::OnOpenFileGeneric( wxCommandEvent& event )
     }
 
     if( p_file_generic_dialog == NULL )
-        p_file_generic_dialog = new wxFileDialog( this );
+        p_file_generic_dialog = new wxFileDialog( NULL );
 
     if( p_file_generic_dialog )
     {
@@ -376,7 +376,7 @@ void DialogsProvider::OnOpenFileSimple( wxCommandEvent& event )
     }
 
     if( p_file_dialog == NULL )
-        p_file_dialog = new wxFileDialog( this, wxU(_("Open File")),
+        p_file_dialog = new wxFileDialog( NULL, wxU(_("Open File")),
             wxT(""), wxT(""), wxT("*"), wxOPEN | wxMULTIPLE );
 
     if( p_file_dialog && p_file_dialog->ShowModal() == wxID_OK )
-- 
GitLab