mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix crash after copying table to other database, when target database is expanded in DBtree and current session has a background color. Closes #1597
This commit is contained in:
@@ -479,10 +479,8 @@ begin
|
||||
if InsertCode <> '' then
|
||||
FConnection.Query(InsertCode);
|
||||
// actRefresh takes care of whether the table editor is open
|
||||
if FConnection.Database = comboDatabase.Text then
|
||||
MainForm.actRefresh.Execute
|
||||
else
|
||||
FConnection.ClearDbObjects(comboDatabase.Text);
|
||||
// See also issue #1597
|
||||
MainForm.actRefresh.Execute
|
||||
except
|
||||
on E:EDbError do begin
|
||||
Screen.Cursor := crDefault;
|
||||
|
||||
Reference in New Issue
Block a user