Skip to content
Snippets Groups Projects
Commit 576554db authored by rswindell's avatar rswindell
Browse files

Fixed close when NOT minimized to system tray.

parent f3ea614f
No related branches found
No related tags found
No related merge requests found
......@@ -735,7 +735,8 @@ void __fastcall TMainForm::FormClose(TObject *Sender, TCloseAction &Action)
{
UpTimer->Enabled=false; /* Stop updating the status bar */
TrayIcon->Visible=false; /* in case we're minimized to the tray */
if(TrayIcon->Visible) /* minimized to tray? */
TrayIcon->Visible=false; /* restore to avoid crash */
if(Initialized) /* Don't overwrite registry settings with defaults */
SaveSettings(Sender);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment