From d5f50d710c1ad4569f691bd5b5572964aff423af Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 30 May 2022 21:43:47 +0200 Subject: [PATCH] Fix crash after copying table to other database, when target database is expanded in DBtree and current session has a background color. Closes #1597 --- source/copytable.pas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/copytable.pas b/source/copytable.pas index a2029b9c..c2ddf1ed 100644 --- a/source/copytable.pas +++ b/source/copytable.pas @@ -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;