Commit 3100140e authored by Cyril Deguet's avatar Cyril Deguet

* 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.
parent ea20f209
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment