From 830e2fa63ec43ada3d7160529d019841faa370b7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 3 Jul 2006 02:10:59 +0000 Subject: [PATCH] Close all windows when quitting at the same time so that the main window isn't visible while the inspector is before the app finishes quitting. --- macosx/Controller.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 70c898d74..033e1b851 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -310,6 +310,8 @@ static void sleepCallBack(void * controller, io_service_t y, //remember window states [fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"]; + [fInfoController close]; + [fPrefsController close]; [fWindow close]; [self showStatusBar: NO animate: NO]; @@ -742,7 +744,7 @@ static void sleepCallBack(void * controller, io_service_t y, - (void) showInfo: (id) sender { if ([[fInfoController window] isVisible]) - [[fInfoController window] performClose: nil]; + [fInfoController close]; else { [fInfoController updateInfoStats];