mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Prefer VCL function StripHotkey() over StringReplace
This commit is contained in:
@@ -1876,8 +1876,7 @@ begin
|
||||
Node := listColumns.GetNextSelected(Node);
|
||||
end;
|
||||
if Item.Parent = menuCreateIndex then begin
|
||||
// Remove auto hotkeys
|
||||
NewType := StringReplace(Item.Caption, '&', '', [rfReplaceAll]);
|
||||
NewType := StripHotkey(Item.Caption);
|
||||
// Avoid creating a second key with the same columns
|
||||
for i:=0 to FKeys.Count-1 do begin
|
||||
TblKey := FKeys[i];
|
||||
|
||||
Reference in New Issue
Block a user