summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-03-19 23:04:09 +0000
committerDavid Laurence Emerson <dle3ab@angelbase.com>2013-05-28 00:42:49 -0700
commit6a002697c14247ea98bac32cb901e3d83cf98291 (patch)
treec1851b865df8a0713430c2dbe8345cc35b4885c2 /docview
parentab289760c6c293c52f90a69f65b264b14c3e163d (diff)
downloadfpGUI-6a002697c14247ea98bac32cb901e3d83cf98291.tar.xz
docview: Fixes a bug where URL links where not handled correctly.
When we detected know web browser names, we had to only use the URL part, not the original program+url text. DocView lets the OS choose the web browser.
Diffstat (limited to 'docview')
-rw-r--r--docview/src/HelpTopic.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/docview/src/HelpTopic.pas b/docview/src/HelpTopic.pas
index 3af43e6a..5a8245a7 100644
--- a/docview/src/HelpTopic.pas
+++ b/docview/src/HelpTopic.pas
@@ -859,6 +859,7 @@ var
ProgramLink: string;
ProgramPath: string;
ProgramFilename: string;
+ lURL: string;
ProgramInfo : TSerializableStringList;
tmpProgramLinkParts : TStrings;
@@ -1000,6 +1001,7 @@ begin
tmpProgramLinkParts := TStringList.Create;
StrExtractStrings(tmpProgramLinkParts, ProgramLink, [' '], #0);
ProgramPath := tmpProgramLinkParts[0];
+ lURL := tmpProgramLinkParts[1];
tmpProgramLinkParts.Destroy;
ProgramFilename := ExtractFilename( ProgramPath );
@@ -1011,7 +1013,7 @@ begin
then
begin
OutputString := '<color blue><link ' + PARAM_LINK_URL + ' '
- + FullDoubleQuote( ProgramLink )
+ + FullDoubleQuote( lURL )
+ '>';
end
else