diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-05-03 11:47:05 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-05-03 11:47:05 +0100 |
commit | 944312154d52c67a9324421a6e34ff6a31627a38 (patch) | |
tree | 3d37c4ad4772aed0fd26f5e38765fe3ea0492f5f /src | |
parent | 85cf42050e3b98c45a4a46f21bfd422be96a3a28 (diff) | |
download | fpGUI-944312154d52c67a9324421a6e34ff6a31627a38.tar.xz |
Only call DocView if fpgApplication.HelpFile is set.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/fpg_widget.pas | 7 |
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 |