adium 2144:aa365e2cb2f6: Reload urrything when the contact list ...
commits at adium.im
commits at adium.im
Mon May 11 04:28:00 UTC 2009
details: http://hg.adium.im/adium/rev/aa365e2cb2f6
revision: 2144:aa365e2cb2f6
author: Zachary West <zacw at adium.im>
date: Mon May 11 00:27:46 2009 -0400
Reload urrything when the contact list changes, so we notice group changes done outside of us, as well as new group additions.
diffstat:
Source/AIAdvancedInspectorPane.m | 21 ++-------------------
1 files changed, 2 insertions(+), 19 deletions(-)
diffs (42 lines):
diff -r b8f21f79037d -r aa365e2cb2f6 Source/AIAdvancedInspectorPane.m
--- a/Source/AIAdvancedInspectorPane.m Mon May 11 00:25:29 2009 -0400
+++ b/Source/AIAdvancedInspectorPane.m Mon May 11 00:27:46 2009 -0400
@@ -49,12 +49,12 @@
//Observe contact list changes
[[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(contactListChanged)
+ selector:@selector(reloadPopup)
name:Contact_ListChanged
object:nil];
//Observe account changes
[[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(accountListChanged)
+ selector:@selector(reloadPopup)
name:Account_ListChanged
object:nil];
@@ -232,23 +232,6 @@
return NSSmallControlSize;
}
-- (void)accountListChanged
-{
- [self reloadPopup];
-}
-
-- (void)contactListChanged
-{
- /* Prevent reentry, as Heisenberg knows out that observing contacts may change them. */
- if (!rebuildingContacts) {
- rebuildingContacts = YES;
- [self accountMenu:accountMenu didSelectAccount:([popUp_accounts numberOfItems] ?
- [[popUp_accounts selectedItem] representedObject] :
- nil)];
- rebuildingContacts = NO;
- }
-}
-
#pragma mark Group control
- (void)selectGroup:(id)sender
{
More information about the commits
mailing list