mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 06:38:11 +01:00
SynEdit: SynPopupMenu, better check for text empty. Issue #38792
This commit is contained in:
parent
60417279f4
commit
dc5cf0ed15
@ -121,7 +121,7 @@ begin
|
||||
meCopy: Items[i].Enabled := SelAvail;
|
||||
mePaste: Items[i].Enabled := CanPaste;
|
||||
meDelete: Items[i].Enabled := SelAvail and not ReadOnly;
|
||||
meSelectAll: Items[i].Enabled := Trim(Lines.Text) <> '';
|
||||
meSelectAll: Items[i].Enabled := (Lines.Count > 1) or (Lines.Text <> '');
|
||||
end;
|
||||
end;
|
||||
inherited;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user