mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 20:11:48 +08:00
Do not switch from "Query" to "Host" main tab when disconnecting. Hopefully does not break what I've done in r3868.
This commit is contained in:
@ -1553,6 +1553,7 @@ begin
|
|||||||
// SynMemo font, hightlighting and shortcuts
|
// SynMemo font, hightlighting and shortcuts
|
||||||
SetupSynEditors;
|
SetupSynEditors;
|
||||||
|
|
||||||
|
SetMainTab(tabHost);
|
||||||
FBtnAddTab := TSpeedButton.Create(PageControlMain);
|
FBtnAddTab := TSpeedButton.Create(PageControlMain);
|
||||||
FBtnAddTab.Parent := PageControlMain;
|
FBtnAddTab.Parent := PageControlMain;
|
||||||
ImageListMain.GetBitmap(actNewQueryTab.ImageIndex, FBtnAddTab.Glyph);
|
ImageListMain.GetBitmap(actNewQueryTab.ImageIndex, FBtnAddTab.Glyph);
|
||||||
@ -7209,7 +7210,6 @@ begin
|
|||||||
end else begin
|
end else begin
|
||||||
LogSQL('DBtreeFocusChanged without node.', lcDebug);
|
LogSQL('DBtreeFocusChanged without node.', lcDebug);
|
||||||
FreeAndNil(FActiveDbObj);
|
FreeAndNil(FActiveDbObj);
|
||||||
MainTabToActivate := tabHost;
|
|
||||||
tabHost.Caption := 'Host';
|
tabHost.Caption := 'Host';
|
||||||
tabDatabase.Caption := 'Database';
|
tabDatabase.Caption := 'Database';
|
||||||
// Clear server version panel
|
// Clear server version panel
|
||||||
|
Reference in New Issue
Block a user