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:
parent
093b59f754
commit
3d9df6798f
1 changed files with 9 additions and 2 deletions
|
@ -103,11 +103,18 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if there is no destination, prompt for one right away
|
[fLocationField setStringValue: @""];
|
||||||
[self setDestination: nil];
|
[fLocationImageView setImage: nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) windowDidLoad
|
||||||
|
{
|
||||||
|
//if there is no destination, prompt for one right away
|
||||||
|
if (!fDestination)
|
||||||
|
[self setDestination: nil];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
Loading…
Reference in a new issue