Camino only - Bug 362051: Don't show the Cannot Launch Camino dialog twice. r/sr=josh

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-03-16 03:08:10 +00:00
parent 7e1f0b5648
commit ffe6cb6610

View File

@ -378,10 +378,14 @@ NSString* const kPreviousSessionTerminatedNormallyKey = @"PreviousSessionTermina
#if DEBUG
NSLog(@"App will terminate notification");
#endif
if ([[PreferenceManager sharedInstanceDontCreate] getBooleanPref:"camino.remember_window_state" withSuccess:NULL])
[[SessionManager sharedInstance] saveWindowState];
else
[[SessionManager sharedInstance] clearSavedState];
// If there's no pref manager then we didn't really start up, so we do nothing.
PreferenceManager* prefManager = [PreferenceManager sharedInstanceDontCreate];
if (prefManager) {
if ([prefManager getBooleanPref:"camino.remember_window_state" withSuccess:NULL])
[[SessionManager sharedInstance] saveWindowState];
else
[[SessionManager sharedInstance] clearSavedState];
}
[NetworkServices shutdownNetworkServices];