Skip to content

Commit f17d084

Browse files
committed
fix: re-enable setting width of helpers box on query tabs
https://www.heidisql.com/forum.php?t=45368
1 parent 91ba1d4 commit f17d084

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎source/main.pas‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,7 +2414,7 @@ function TMainForm.RestoreTabs: Boolean;
24142414
Section, Filename, BackupFilename, TabCaption: String;
24152415
TabsIni: TIniFile;
24162416
pid: Cardinal;
2417-
EditorHeight, EditorTopLine: Integer;
2417+
EditorHeight, HelpersWidth, EditorTopLine: Integer;
24182418
BindParams: String;
24192419
TabFocused: Boolean;
24202420
TabLoadStart, TabLoadTime: UInt64;
@@ -2449,7 +2449,7 @@ function TMainForm.RestoreTabs: Boolean;
24492449
TabCaption := TabsIni.ReadString(Section, TQueryTab.IdentCaption, '');
24502450
pid := Cardinal(TabsIni.ReadInteger(Section, TQueryTab.IdentPid, 0));
24512451
EditorHeight := TabsIni.ReadInteger(Section, TQueryTab.IdentEditorHeight, 0);
2452-
//HelpersWidth := TabsIni.ReadInteger(Section, TQueryTab.IdentHelpersWidth, 0);
2452+
HelpersWidth := TabsIni.ReadInteger(Section, TQueryTab.IdentHelpersWidth, 0);
24532453
BindParams := TabsIni.ReadString(Section, TQueryTab.IdentBindParams, '');
24542454
EditorTopLine := TabsIni.ReadInteger(Section, TQueryTab.IdentEditorTopLine, 1);
24552455
TabFocused := TabsIni.ReadBool(Section, TQueryTab.IdentTabFocused, False);
@@ -2475,8 +2475,8 @@ function TMainForm.RestoreTabs: Boolean;
24752475
if EditorHeight > 50 then
24762476
Tab.pnlMemo.Height := EditorHeight;
24772477
// Causes sporadic long-waiters:
2478-
//if HelpersWidth > 50 then
2479-
// Tab.pnlHelpers.Width := HelpersWidth;
2478+
if HelpersWidth > 50 then
2479+
Tab.pnlHelpers.Width := HelpersWidth;
24802480
Tab.ListBindParams.AsText := BindParams;
24812481
Tab.BindParamsActivated := Tab.ListBindParams.Count > 0;
24822482
Tab.Memo.TopLine := EditorTopLine;
@@ -2498,8 +2498,8 @@ function TMainForm.RestoreTabs: Boolean;
24982498
if EditorHeight > 50 then
24992499
Tab.pnlMemo.Height := EditorHeight;
25002500
// Causes sporadic long-waiters:
2501-
//if HelpersWidth > 50 then
2502-
// Tab.pnlHelpers.Width := HelpersWidth;
2501+
if HelpersWidth > 50 then
2502+
Tab.pnlHelpers.Width := HelpersWidth;
25032503
Tab.ListBindParams.AsText := BindParams;
25042504
Tab.BindParamsActivated := Tab.ListBindParams.Count > 0;
25052505
Tab.Memo.TopLine := EditorTopLine;

0 commit comments

Comments
 (0)