]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
update frm Ivan Masar
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 699f568fcb0596f37a379f7859f5a683dd4990da..742961c9947035fd7ff76d6a28ecd042fa0b3f35 100644 (file)
@@ -97,7 +97,8 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
     if (!gtk_check_version(2,4,0))
     {
         m_message = title;
-        m_needParent = false;
+
+        parent = GetParentForModalDialog(parent);
 
         if (!PreCreation(parent, pos, wxDefaultSize) ||
             !CreateBase(parent, wxID_ANY, pos, wxDefaultSize, style,