X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e15e548b5073fd06a35f7328fb9b811f75702a52..a38b83c353cce75329b2c53c0eaa4ad0f500ccf1:/src/msw/filedlg.cpp?ds=sidebyside diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 05c91f918c..f5cc104122 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -271,7 +271,8 @@ int wxFileDialog::ShowModal(void) extension = extension + strlen( extension ) +1; } - if ( (extension = strrchr( extension, '.' )) // != "blabla" + extension = strrchr( extension, '.' ); + if ( extension // != "blabla" && !strrchr( extension, '*' ) // != "blabla.*" && !strrchr( extension, '?' ) // != "blabla.?" && extension[1] // != "blabla." @@ -328,10 +329,10 @@ wxDefaultFileSelector(bool load, const char *what, const char *extension, const char prompt[50]; wxString str; if (load) - str = (const char*) wxTString("Load %s file"); + str = "Load %s file"; else - str = (const char*) wxTString("Save %s file"); - sprintf(prompt, str, what); + str = "Save %s file"; + sprintf(prompt, wxGetTranslation(str), what); if (*ext == '.') ext++; char wild[60];