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:
Ansgar Becker
2022-05-30 21:43:47 +02:00
parent 25d15d8b41
commit d5f50d710c

View File

@@ -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;