Browse Source

* 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.
pull/2/head
Cyril Deguet 23 years ago
parent
commit
3100140ed2
  1. 4
      modules/gui/wxwindows/dialogs.cpp

4
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 )

Loading…
Cancel
Save