changeset 4999:abe9720a0615

[gaim-migrate @ 5334] make the IM button do something when a buddy isn't selected committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 04 Apr 2003 21:09:11 +0000
parents 13c4752e7138
children 17f5e6628b37
files src/buddy.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Fri Apr 04 20:58:09 2003 +0000
+++ b/src/buddy.c	Fri Apr 04 21:09:11 2003 +0000
@@ -178,9 +178,12 @@
 		GaimBlistNode *node;
 
 		gtk_tree_model_get(GTK_TREE_MODEL(gtkblist->treemodel), &iter, NODE_COLUMN, &node, -1);
-		if (GAIM_BLIST_NODE_IS_BUDDY(node)) 
+		if (GAIM_BLIST_NODE_IS_BUDDY(node)) {
 			gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name);
+			return;
+		}
 	}
+	show_im_dialog();
 }
 
 static void gtk_blist_button_info_cb(GtkWidget *w, GtkTreeView *tv)