mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #2260: fix non-accepted pasted new text in collation drop-down
This commit is contained in:
@@ -919,8 +919,12 @@ function TEnumEditorLink.EndEdit: Boolean; stdcall;
|
||||
var
|
||||
NewText: String;
|
||||
begin
|
||||
if AllowCustomText and FAllowEdit and (not ItemMustExist) then
|
||||
NewText := FCombo.Text
|
||||
if AllowCustomText and FAllowEdit then begin
|
||||
if (not ItemMustExist) or ValueList.Contains(FCombo.Text) then
|
||||
NewText := FCombo.Text
|
||||
else
|
||||
NewText := '';
|
||||
end
|
||||
else if (ValueList.Count > 0) and (FCombo.ItemIndex > -1) then
|
||||
NewText := ValueList[FCombo.ItemIndex]
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user