mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
VirtualStringTree.InsertNode internally calls .DoCancelEdit, which is not what we want when the user clicks the "Add column" button while editing another column. Instead, explicitly call .EndEditNode before .InsertNode. Fixes issue #1508.
This commit is contained in:
@ -761,6 +761,8 @@ var
|
||||
idx: Integer;
|
||||
begin
|
||||
// Add new column after selected one
|
||||
if listColumns.IsEditing then
|
||||
listColumns.EndEditNode;
|
||||
fn := listColumns.FocusedNode;
|
||||
NewCol := TTableColumn.Create;
|
||||
if Assigned(fn) then begin
|
||||
|
Reference in New Issue
Block a user