# HG changeset patch # User Sadrul Habib Chowdhury # Date 1204818870 0 # Node ID b0b8c94118c802115799979e2e7517bb18806fa1 # Parent 316c8565f562a9e4f0e6f0142fac8aa38e25eea5 Make sure an existing conversation selected from the 'Send IM' dialog is given the focus. diff -r 316c8565f562 -r b0b8c94118c8 finch/gntblist.c --- a/finch/gntblist.c Wed Mar 05 10:00:45 2008 +0000 +++ b/finch/gntblist.c Thu Mar 06 15:54:30 2008 +0000 @@ -2610,11 +2610,13 @@ { PurpleAccount *account; const char *username; + PurpleConversation *conv; account = purple_request_fields_get_account(fields, "account"); username = purple_request_fields_get_string(fields, "screenname"); - purple_conversation_new(PURPLE_CONV_TYPE_IM, account, username); + conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, username); + purple_conversation_present(conv); } static void diff -r 316c8565f562 -r b0b8c94118c8 finch/gntconv.c --- a/finch/gntconv.c Wed Mar 05 10:00:45 2008 +0000 +++ b/finch/gntconv.c Thu Mar 06 15:54:30 2008 +0000 @@ -660,8 +660,10 @@ PurpleAccount *account; PurpleBlistNode *convnode = NULL; - if (ggc) + if (ggc) { + gnt_window_present(ggc->window); return; + } account = purple_conversation_get_account(conv); cc = find_conv_with_contact(account, purple_conversation_get_name(conv));