POChecker: don't hide 'Open file in external editor' menuitem in Graphical Statistics form if external editor is not defined, just disable it (so user can know about this function at all)

git-svn-id: trunk@52514 -
This commit is contained in:
maxim 2016-06-16 22:22:34 +00:00
parent 50f4d45c3a
commit 991df2faf8
2 changed files with 3 additions and 1 deletions

View File

@ -109,6 +109,7 @@ object GraphStatForm: TGraphStatForm
end
object ExtEditorMenuItem: TMenuItem
Caption = 'Open file in external editor'
Enabled = False
Visible = False
OnClick = ExtEditorMenuItemClick
end

View File

@ -242,8 +242,9 @@ begin
Separator1MenuItem.Visible := AdvancedMode;
//ExtEditorMenuItem and IDEEditorMenuItem are invisible by default
{$ifdef pocheckerstandalone}
ExtEditorMenuItem.Visible := AdvancedMode;
if Settings.ExternalEditorName <> '' then
ExtEditorMenuItem.Visible := AdvancedMode;
ExtEditorMenuItem.Enabled := true;
{$else}
IDEEditorMenuItem.Visible := AdvancedMode;
{$endif}