From 864ae21828ec00e14dd3c6630dfd5f297e6e27c4 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 10 May 2014 04:16:38 +0000 Subject: [PATCH] Run ValidateControls() even when it was executed shortly before, otherwise some actions ("run sql" after query execution for example) won't update. See http://www.heidisql.com/forum.php?t=15651 --- source/main.pas | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source/main.pas b/source/main.pas index c8632c27..6f9ac4a1 100644 --- a/source/main.pas +++ b/source/main.pas @@ -1014,7 +1014,6 @@ type FGridPasting: Boolean; FHasDonatedDatabaseCheck: TThreeStateBoolean; FFocusedTables: TDBObjectList; - FLastActionUpdate: Cardinal; // Host subtabs backend structures FHostListResults: TDBQueryList; @@ -5175,11 +5174,6 @@ var begin // When adding some new TAction here, be sure to apply this procedure to its OnUpdate event - // Ensure this quite complex procedure is not called 100 times when a (popup-)menu pops up - if FLastActionUpdate >= GetTickCount-100 then - Exit; - FLastActionUpdate := GetTickCount; - Grid := ActiveGrid; Results := nil; GridHasChanges := False;