From 32f33ef59775ac4510a3fdd6103c1381466a8080 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Wed, 29 Oct 2008 21:07:40 +0000 Subject: [PATCH] Removed unnecessary code that was resetting options whenever the array changes in the background. The problem is that any external change to the ticket list will cause this to happen, even when the options dialog is open. Also removed unused function resetOptions. ticket: 6224 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20938 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/agent/mac/SelectIdentityController.h | 1 - src/kim/agent/mac/SelectIdentityController.m | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/src/kim/agent/mac/SelectIdentityController.h b/src/kim/agent/mac/SelectIdentityController.h index 1a95ca994..4d744ba08 100644 --- a/src/kim/agent/mac/SelectIdentityController.h +++ b/src/kim/agent/mac/SelectIdentityController.h @@ -77,7 +77,6 @@ - (IBAction) removeFromFavorites: (id) sender; - (IBAction) editOptions: (id) sender; -- (IBAction) resetOptions: (id) sender; - (IBAction) cancelOptions: (id) sender; - (IBAction) doneOptions: (id) sender; diff --git a/src/kim/agent/mac/SelectIdentityController.m b/src/kim/agent/mac/SelectIdentityController.m index 4bc760d9d..9f9addaf3 100644 --- a/src/kim/agent/mac/SelectIdentityController.m +++ b/src/kim/agent/mac/SelectIdentityController.m @@ -41,7 +41,6 @@ - (void) dealloc { - [identityArrayController removeObserver:self forKeyPath:@"selectedObjects"]; [identityOptionsController removeObserver:self forKeyPath:uses_default_options_keypath]; [refreshTimer release]; [identities release]; @@ -87,10 +86,6 @@ forKeyPath:identity_string_keypath options:NSKeyValueObservingOptionNew context:NULL]; - [identityArrayController addObserver:self - forKeyPath:@"selectedObjects" - options:NSKeyValueObservingOptionNew - context:NULL]; } - (void) observeValueForKeyPath:(NSString *) keyPath ofObject: (id) object change: (NSDictionary *) change context:(void *) context @@ -100,10 +95,6 @@ [identityOptionsController setValue:[NSNumber numberWithBool:enabled] forKeyPath:@"content.canClickOK"]; } - // clear options on selection change - else if (object == identityArrayController && [keyPath isEqualToString:@"selectedObjects"]) { - [identityOptionsController setContent:nil]; - } } // --------------------------------------------------------------------------- @@ -219,14 +210,6 @@ // --------------------------------------------------------------------------- -- (IBAction) resetOptions: (id) sender -{ - Identity *anIdentity = [identityArrayController.selectedObjects lastObject]; - [identityOptionsController setContent:anIdentity.options]; -} - -// --------------------------------------------------------------------------- - - (IBAction) cancelOptions: (id) sender { identityOptionsController.content = nil; -- 2.26.2