mirror of https://github.com/odrling/Aegisub
Always use wxPATH_WIN for wxFileName::GetForbiddenChars
While it's possible to have files with the DOS-only forbidden characters on other platforms, wx doesn't actually support them very well. Closes #1489. Originally committed to SVN as r6792.
This commit is contained in:
parent
ea1dbc3e8c
commit
d38e02c031
|
@ -372,7 +372,7 @@ void DialogStyleManager::OnCatalogNew() {
|
|||
if (!name) return;
|
||||
|
||||
// Remove bad characters from the name
|
||||
wxString badchars = wxFileName::GetForbiddenChars();
|
||||
wxString badchars = wxFileName::GetForbiddenChars(wxPATH_DOS);
|
||||
int badchars_removed = 0;
|
||||
for (size_t i = 0; i < name.size(); ++i) {
|
||||
if (badchars.find(name[i]) != badchars.npos) {
|
||||
|
|
Loading…
Reference in New Issue