From 677ab52820de943d065b9b8404e2dbae130be59f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 12 Feb 2002 23:48:00 +0000 Subject: [PATCH] MainForm close event handler needs to save registry settings to save current form sizes and positions. --- src/sbbs3/ctrl/MainFormUnit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbbs3/ctrl/MainFormUnit.cpp b/src/sbbs3/ctrl/MainFormUnit.cpp index 0aff559bf9..6e27729214 100644 --- a/src/sbbs3/ctrl/MainFormUnit.cpp +++ b/src/sbbs3/ctrl/MainFormUnit.cpp @@ -773,10 +773,9 @@ void __fastcall TMainForm::FormClose(TObject *Sender, TCloseAction &Action) if(TrayIcon->Visible) /* minimized to tray? */ TrayIcon->Visible=false; /* restore to avoid crash */ -#if 0 /* This shouldn't be necessary any longer */ + /* This is necessary to save form sizes/positions */ if(Initialized) /* Don't overwrite registry settings with defaults */ SaveSettings(Sender); -#endif StatusBar->Panels->Items[4]->Text="Closing..."; time_t start=time(NULL); -- GitLab