1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

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

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];