summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-05-03 11:47:05 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-05-03 11:47:05 +0100
commit944312154d52c67a9324421a6e34ff6a31627a38 (patch)
tree3d37c4ad4772aed0fd26f5e38765fe3ea0492f5f /src
parent85cf42050e3b98c45a4a46f21bfd422be96a3a28 (diff)
downloadfpGUI-944312154d52c67a9324421a6e34ff6a31627a38.tar.xz
Only call DocView if fpgApplication.HelpFile is set.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_widget.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/fpg_widget.pas b/src/corelib/fpg_widget.pas
index a74c1b30..dc47702e 100644
--- a/src/corelib/fpg_widget.pas
+++ b/src/corelib/fpg_widget.pas
@@ -962,8 +962,11 @@ begin
if not consumed and (keycode = fpgApplication.HelpKey) and (shiftstate=[]) then
begin
- InvokeHelp;
- consumed := True;
+ if fpgApplication.HelpFile <> '' then
+ begin
+ InvokeHelp;
+ consumed := True;
+ end;
end;
case keycode of