mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Simplify more code using the new PopupComponent() function
This commit is contained in:
@ -2383,7 +2383,7 @@ procedure TfrmTableEditor.popupPropertiesPopup(Sender: TObject);
|
||||
var
|
||||
Comp: TComponent;
|
||||
begin
|
||||
Comp := (Sender as TPopupMenu).PopupComponent;
|
||||
Comp := PopupComponent(Sender);
|
||||
if Comp = treeIndexes then begin
|
||||
menuRemoveProperty.Enabled := btnRemoveIndex.Enabled;
|
||||
menuClearProperties.Enabled := btnClearIndexes.Enabled;
|
||||
|
Reference in New Issue
Block a user