X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f74172ab4256c9e7c665e44e2f94ce12bf84a37f..6e36105bda4d8cded94715c0e5da5ffd04cce360:/src/os2/filedlg.cpp diff --git a/src/os2/filedlg.cpp b/src/os2/filedlg.cpp index 7e126680c3..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; @@ -216,7 +221,7 @@ int wxFileDialog::ShowModal() m_fileNames.Empty(); if ((m_dialogStyle & wxMULTIPLE ) && vFileDlg.ulFQFCount > 1) { - for (int i = 0; i < vFileDlg.ulFQFCount; i++) + for (int i = 0; i < (int)vFileDlg.ulFQFCount; i++) { if (i == 0) { @@ -263,7 +268,7 @@ int wxFileDialog::ShowModal() // pzExtension = sFilterBuffer.c_str(); - for( int i = 0; i < sFilterBuffer.length(); i++ ) + for( int i = 0; i < (int)sFilterBuffer.length(); i++ ) { // // Get extension