From: Włodzimierz Skiba Date: Tue, 18 May 2004 13:12:36 +0000 (+0000) Subject: Patch #953165, Bug #821657: wxHIDE_READONLY no more important. Blind change reported... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3660be5d50e0874bb26699e1c9ab481976ea4fa9?hp=21416306cb462782b3421ff483a88813c130dfb0 Patch #953165, Bug #821657: wxHIDE_READONLY no more important. Blind change reported to Stefan Neis git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/filedlg.cpp b/src/os2/filedlg.cpp index 13530846b8..0fa360c0d4 100644 --- a/src/os2/filedlg.cpp +++ b/src/os2/filedlg.cpp @@ -126,7 +126,12 @@ int wxFileDialog::ShowModal() else lFlags = FDS_OPEN_DIALOG; - if ((m_dialogStyle & wxHIDE_READONLY) || (m_dialogStyle & wxSAVE)) +#if WXWIN_COMPATIBILITY_2_4 + if (m_dialogStyle & wxHIDE_READONLY) + lFlags |= FDS_SAVEAS_DIALOG; +#endif + + if (m_dialogStyle & wxSAVE) lFlags |= FDS_SAVEAS_DIALOG; if (m_dialogStyle & wxMULTIPLE ) lFlags |= FDS_OPEN_DIALOG | FDS_MULTIPLESEL;