mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Use j, not i, for a check whether a recent filter item has a numeric name. Fixes issue #2932.
This commit is contained in:
@ -11033,7 +11033,7 @@ begin
|
|||||||
for i:=0 to ValueNames.Count-1 do begin
|
for i:=0 to ValueNames.Count-1 do begin
|
||||||
j := StrToIntDef(ValueNames[i], -1);
|
j := StrToIntDef(ValueNames[i], -1);
|
||||||
// Prevent from running into serious errors when registry has some non-numeric value
|
// Prevent from running into serious errors when registry has some non-numeric value
|
||||||
if i<>-1 then begin
|
if j<>-1 then begin
|
||||||
Item := TQueryHistoryItem.Create;
|
Item := TQueryHistoryItem.Create;
|
||||||
Item.RegValue := j;
|
Item.RegValue := j;
|
||||||
Raw := AppSettings.ReadString(ValueNames[i]);
|
Raw := AppSettings.ReadString(ValueNames[i]);
|
||||||
|
Reference in New Issue
Block a user