mirror of https://github.com/odrling/Aegisub
Select Language dialog no longer complains if locale dir is missing.
Originally committed to SVN as r856.
This commit is contained in:
parent
ee8bf9274c
commit
99e47ae943
|
@ -116,8 +116,9 @@ wxArrayInt AegisubLocale::GetAvailableLanguages() {
|
||||||
|
|
||||||
// Open directory
|
// Open directory
|
||||||
wxString folder = AegisubApp::folderName + _T("/locale/");
|
wxString folder = AegisubApp::folderName + _T("/locale/");
|
||||||
wxDir dir(folder);
|
wxDir dir;
|
||||||
if (!dir.IsOpened()) return final;
|
if (!dir.Exists(folder)) return final;
|
||||||
|
if (!dir.Open(folder)) return final;
|
||||||
|
|
||||||
// Enumerate folders
|
// Enumerate folders
|
||||||
for (bool cont = dir.GetFirst(&temp1,_T(""),wxDIR_DIRS);cont;cont = dir.GetNext(&temp1)) {
|
for (bool cont = dir.GetFirst(&temp1,_T(""),wxDIR_DIRS);cont;cont = dir.GetNext(&temp1)) {
|
||||||
|
|
Loading…
Reference in New Issue