SynEdit: SynPopupMenu, better check for text empty. Issue #38792

This commit is contained in:
Martin 2023-07-06 10:59:17 +02:00
parent 60417279f4
commit dc5cf0ed15

View File

@ -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;