adium-1.4 2797:0423824a16e0: When in a group chat, the "get info...
commits at adium.im
commits at adium.im
Mon Nov 23 05:23:33 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/0423824a16e0
revision: 2797:0423824a16e0
author: Zachary West <zacw at adium.im>
date: Mon Nov 23 00:23:17 2009 -0500
When in a group chat, the "get info" keyboard shortcut should always open the group chat. Fixes #11941.
My previous argument (of getting info on the selected object in the user list) is probably best served by the context menus in the user list, not the generic "Contact" one.
diffs (23 lines):
diff -r 7ffe6bd0f0d7 -r 0423824a16e0 Source/AIContactInfoWindowPlugin.m
--- a/Source/AIContactInfoWindowPlugin.m Sun Nov 22 23:45:20 2009 -0500
+++ b/Source/AIContactInfoWindowPlugin.m Mon Nov 23 00:23:17 2009 -0500
@@ -83,6 +83,10 @@
}
}
}
+
+ if (!listObject && adium.interfaceController.activeChat.isGroupChat) {
+ listObject = [adium.contactController existingBookmarkForChat:adium.interfaceController.activeChat];
+ }
if (!listObject && (sender == menuItem_getInfoAlternate || sender == menuItem_getInfo)) {
listObject = adium.interfaceController.selectedListObject;
@@ -201,7 +205,7 @@
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
{
if ((menuItem == menuItem_getInfo) || (menuItem == menuItem_getInfoAlternate)) {
- return adium.interfaceController.selectedListObject != nil;
+ return adium.interfaceController.selectedListObject != nil || adium.interfaceController.activeChat.isGroupChat;
} else if ((menuItem == menuItem_getInfoContextualContact) || (menuItem == menuItem_getInfoContextualGroup)) {
return adium.menuController.currentContextMenuObject != nil;
More information about the commits
mailing list