adium 2946:498ff9132c16: When in a group chat, the "get info" ke...

commits at adium.im commits at adium.im
Mon Nov 23 05:23:50 UTC 2009


details:	http://hg.adium.im/adium/rev/498ff9132c16
revision:	2946:498ff9132c16
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.
(transplanted from 0423824a16e0ce630a1e81c9bcd9dbbae1d71382)

diffs (23 lines):

diff -r 7f1efd336b0a -r 498ff9132c16 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