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

This commit is contained in:
Ansgar Becker
2014-05-10 04:16:38 +00:00
parent 8c3775fe0f
commit 864ae21828

View File

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