Ticket #1111: atlas_wxwidgets_osx_v3.patch
File atlas_wxwidgets_osx_v3.patch, 1.7 KB (added by , 12 years ago) |
---|
-
atlas/AtlasUI/ArchiveViewer/ArchiveViewer.cpp
461 461 wxString filename = wxString( utf16tow(file.filename).c_str() ); 462 462 int lastSlash = filename.Find(_T('\\'), true); 463 463 if (lastSlash != -1) 464 dirs.insert( filename.Mid(0, lastSlash+1).wc_str());464 dirs.insert( std::wstring(filename.Mid(0, lastSlash+1)) ); 465 465 } 466 466 467 467 // Construct the directory tree: … … 587 587 path = GetDefaultOpenDirectory(); 588 588 } 589 589 590 wxFileDialog dlg (this, _("Select archive file to open"), path, name, _("BAR files (*.bar)|*.bar|All files (*.*)|*.*"), wx OPEN);590 wxFileDialog dlg (this, _("Select archive file to open"), path, name, _("BAR files (*.bar)|*.bar|All files (*.*)|*.*"), wxFD_OPEN); 591 591 592 592 if (dlg.ShowModal() != wxID_OK) 593 593 return; -
atlas/AtlasUI/FileConverter/FileConverter.cpp
95 95 extns += wxString(_T("|")) + _("All files") + _T(" (*.*)|*.*"); 96 96 97 97 wxFileDialog dlg (this, _("Select file(s) to convert"), defaultDir, _T(""), 98 extns, wx OPEN|/*wxFILE_MUST_EXIST|*/wxMULTIPLE); // for some reason, it complains that files don't exist when they actually do...98 extns, wxFD_OPEN|/*wxFILE_MUST_EXIST|*/wxFD_MULTIPLE); // for some reason, it complains that files don't exist when they actually do... 99 99 if (dlg.ShowModal() == wxID_OK) 100 100 { 101 101 wxArrayString files;