mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
closer to not crashing when adding without a destination then canceling
This commit is contained in:
parent
093b59f754
commit
3d9df6798f
1 changed files with 9 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue