X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afcaf277afb7a5f9f31cfd6c425dd9c3a68dd2ba..750b78ba359e7d30c7d3ad49d268923e986268cb:/src/generic/helphtml.cpp diff --git a/src/generic/helphtml.cpp b/src/generic/helphtml.cpp index 0d909968b3..13ea6eeecf 100644 --- a/src/generic/helphtml.cpp +++ b/src/generic/helphtml.cpp @@ -33,13 +33,6 @@ public: { id = iid; url = iurl; doc = idoc; } }; - -struct wxBusyCursor -{ - wxBusyCursor() { wxBeginBusyCursor(); } - ~wxBusyCursor() { wxEndBusyCursor(); } -}; - IMPLEMENT_ABSTRACT_CLASS(wxHTMLHelpControllerBase, wxHelpControllerBase) /** @@ -122,6 +115,15 @@ wxHTMLHelpControllerBase::LoadFile(const wxString& ifile) newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName(); if(wxDirExists(newfile)) file = newfile; + else + { + newfile = WXEXTHELP_SEPARATOR; + const char *cptr = wxGetLocale()->GetName().c_str(); + while(*cptr && *cptr != '_') + newfile << *(cptr++); + if(wxDirExists(newfile)) + file = newfile; + } } if(! wxDirExists(file))