Fix empty table name in SELECT and following AV when hiding tabs auto selects the data tab for a millisecond. Reproducible when you have the table editor open and click a different database in the tree.

This commit is contained in:
Ansgar Becker
2010-03-09 23:45:42 +00:00
parent f7ee77561b
commit 20048c230a

View File

@ -6417,8 +6417,7 @@ begin
Exit;
end;
end;
if (not DBtree.Dragging)
and ((PageControlMain.ActivePage = tabHost) or(PageControlMain.ActivePage = tabData)) then
if (not DBtree.Dragging) and (not QueryTabActive) then
PageControlMain.ActivePage := tabDatabase;
tabDatabase.TabVisible := true;
tabEditor.TabVisible := false;