X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ecff18117f8cabc0f515ad81aa4ad265e5e17d3..f31bbefd1070af6162b9deeda9d4e528efbc1b31:/src/generic/helpext.cpp?ds=inline diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 7a8135133d..28a1eb0252 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -457,10 +457,15 @@ bool wxExtHelpController::KeywordSearch(const wxString& k, break; default: - idx = wxGetSingleChoiceIndex( - showAll ? _("Help Index") : _("Relevant entries:"), - showAll ? _("Help Index") : _("Entries found"), - idx, choices); + if (showAll) + idx = wxGetSingleChoiceIndex(_("Help Index"), + _("Help Index"), + idx, choices); + else + idx = wxGetSingleChoiceIndex(_("Relevant entries:"), + _("Entries found"), + idx, choices); + if (idx >= 0) rc = DisplayHelp(urls[idx]); break;