Skip to content

Commit

Permalink
Avoid "Gtk-Message: GtkDialog mapped without a transient parent", closes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcor committed Apr 22, 2015
1 parent c2543cd commit eb4aab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gtk/filedlg.cpp
Expand Up @@ -192,7 +192,8 @@ bool wxFileDialog::Create(wxWindow *parent, const wxString& message,
const wxSize& sz,
const wxString& name)
{
parent = GetParentForModalDialog(parent, style);
// wxFD_MULTIPLE has the same value as wxDIALOG_NO_PARENT
parent = GetParentForModalDialog(parent, style & ~wxFD_MULTIPLE);

if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFileName,
wildCard, style, pos, sz, name))
Expand Down

0 comments on commit eb4aab5

Please sign in to comment.