From 3d9df6798f0e4b6b58c8d86dd99c68dd52c3063b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 5 Jan 2008 03:06:20 +0000 Subject: [PATCH] closer to not crashing when adding without a destination then canceling --- macosx/AddWindowController.m | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/macosx/AddWindowController.m b/macosx/AddWindowController.m index 6460e730b..596c43072 100644 --- a/macosx/AddWindowController.m +++ b/macosx/AddWindowController.m @@ -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];