mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-07 03:50:38 +01:00
IDEIntf: object inspector: hide jump to declaration menu item if no row selected
git-svn-id: trunk@26549 -
This commit is contained in:
parent
662e9519a7
commit
9eab130917
@ -5088,7 +5088,16 @@ begin
|
||||
UndoPropertyPopupMenuItem.Visible := True;
|
||||
UndoPropertyPopupMenuItem.Enabled := (CurRow<>nil) and (CurRow.Editor.GetVisualValue <> CurGrid.CurrentEditValue);
|
||||
ShowHintsPopupMenuItem.Checked := PropertyGrid.ShowHint;
|
||||
FindDeclarationPopupmenuItem.Visible := True;
|
||||
if CurRow=nil then begin
|
||||
FindDeclarationPopupmenuItem.Visible := False;
|
||||
end
|
||||
else begin
|
||||
FindDeclarationPopupmenuItem.Visible := true;
|
||||
FindDeclarationPopupmenuItem.Caption:=Format(oisJumpToDeclarationOf, [
|
||||
CurRow.Name]);
|
||||
FindDeclarationPopupmenuItem.Hint:=Format(oisJumpToDeclarationOf, [CurRow.
|
||||
Editor.GetPropertyPath(0)]);
|
||||
end;
|
||||
ViewRestrictedPropertiesPopupMenuItem.Visible := True;
|
||||
OptionsSeparatorMenuItem.Visible := True;
|
||||
end
|
||||
@ -5102,6 +5111,7 @@ begin
|
||||
ViewRestrictedPropertiesPopupMenuItem.Visible := False;
|
||||
OptionsSeparatorMenuItem.Visible := False;
|
||||
end;
|
||||
//debugln(['TObjectInspectorDlg.OnMainPopupMenuPopup ',FindDeclarationPopupmenuItem.Visible]);
|
||||
end;
|
||||
|
||||
procedure TObjectInspectorDlg.DoUpdateRestricted;
|
||||
|
||||
@ -71,6 +71,7 @@ resourcestring
|
||||
oisRemoveFromFavorites = 'Remove from Favorites';
|
||||
oisUndo = 'Undo';
|
||||
oisFinddeclaration = 'Jump to declaration';
|
||||
oisJumpToDeclarationOf = 'Jump to declaration of %s';
|
||||
oisCutComponents = 'Cu&t';
|
||||
oisCopyComponents = '&Copy';
|
||||
oisPasteComponents = '&Paste';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user