X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f73f25cc81a95cbfff4f1afa850aae5976a423c..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index bb3fbd1586..7fcfd47c56 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -32,8 +32,6 @@ wxDEFINE_TIED_SCOPED_PTR_TYPE(wxGUIEventLoop) // wxDialog //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxTopLevelWindow) - void wxDialog::Init() { m_modalLoop = NULL; @@ -111,7 +109,7 @@ int wxDialog::ShowModal() if ( win ) win->GTKReleaseMouseAndNotify(); - wxWindow * const parent = GetParentForModalDialog(GetParent()); + wxWindow * const parent = GetParentForModalDialog(); if ( parent ) { gtk_window_set_transient_for( GTK_WINDOW(m_widget),