mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user