Fixed bug #67 courtesy Chris Lawson.

This commit is contained in:
andym committed 2007-10-25 10:26:40 +00:00
1 parent 602541866f
commit 5880c5f3ec
1 file changed
+3 -2
+3 -2
View File
@@ -153,9 +153,9 @@
if (verbosity)
{
NSBeep();
if ([[statusController window] isVisible])
if (statusController && [[statusController window] isVisible])
[statusController showWindow:self];
else if ([[updateAlert window] isVisible])
else if (updateAlert && [[updateAlert window] isVisible])
[updateAlert showWindow:self];
else
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An update is already in progress!", nil)];
@@ -256,6 +256,7 @@
- (void)updateAlert:(SUUpdateAlert *)alert finishedWithChoice:(SUUpdateAlertChoice)choice
{
[alert release];
updateAlert = nil;
switch (choice)
{
case SUInstallUpdateChoice: