1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Reverting behaviour of 'help' links/buttons with an anchor (#) in them, so that they go to an online place that works (as in 2.0.5).

The use of an anchor in local files does not work in a number of OSs.
This commit is contained in:
martynshaw99
2014-09-04 00:02:12 +00:00
parent 7e4902ebec
commit 375feaee52

View File

@@ -199,6 +199,14 @@ void HelpSystem::ShowHelpDialog(wxWindow *parent,
} }
} }
// Anchors (URLs with a '#' in them) are not supported by many OSs for local file names
// See, for example, https://groups.google.com/forum/#!topic/wx-users/pC0uOZJalRQ
// Problems have been reported on Win, Mac and some versions of Linux.
// So we set HelpMode to use the internet if an anchor is found.
if (localFileName.Find('#', true) != wxNOT_FOUND)
HelpMode = wxT("FromInternet");
// Until a solution is found for this, the next few lines are irrelevant.
// Obtain the local file system file name, without the anchor if present. // Obtain the local file system file name, without the anchor if present.
wxString localfile; wxString localfile;
if (localFileName.Find('#', true) != wxNOT_FOUND) if (localFileName.Find('#', true) != wxNOT_FOUND)