X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355b4d3de54b76db87439fa2142c7334a6e48f85..bcd846ea7191d33d86e28ee1927b461c54d2fb8f:/src/motif/dialog.cpp diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index c230211bfc..cc38234f56 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -105,7 +105,6 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, m_foregroundColour = *wxBLACK; Widget dialogShell = (Widget) m_mainWidget; - Widget shell = XtParent(dialogShell) ; SetTitle( title ); @@ -131,6 +130,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, // is managed, so we manage without mapping to the screen. // To show, we map the shell (actually it's parent). #if !wxUSE_INVISIBLE_RESIZE + Widget shell = XtParent(dialogShell) ; XtVaSetValues(shell, XmNmappedWhenManaged, False, NULL); #endif @@ -194,21 +194,10 @@ bool wxDialog::XmDoCreateTLW(wxWindow* parent, void wxDialog::SetModal(bool flag) { -#ifdef __VMS -#pragma message disable codcauunr -#endif if ( flag ) - m_windowStyle |= wxDIALOG_MODAL ; - else - if ( m_windowStyle & wxDIALOG_MODAL ) - m_windowStyle -= wxDIALOG_MODAL ; - - wxModelessWindows.DeleteObject(this); - if (!flag) - wxModelessWindows.Append(this); -#ifdef __VMS -#pragma message enable codcauunr -#endif + wxModelessWindows.DeleteObject(this); + else + wxModelessWindows.Append(this); } wxDialog::~wxDialog()