closer to not crashing when adding without a destination then canceling

This commit is contained in:
Mitchell Livingston 2008-01-05 03:06:20 +00:00
parent 093b59f754
commit 3d9df6798f
1 changed files with 9 additions and 2 deletions

View File

@ -103,11 +103,18 @@
}
else
{
//if there is no destination, prompt for one right away
[self setDestination: nil];
[fLocationField setStringValue: @""];
[fLocationImageView setImage: nil];
}
}
- (void) windowDidLoad
{
//if there is no destination, prompt for one right away
if (!fDestination)
[self setDestination: nil];
}
- (void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];