# HG changeset patch # User Sean Egan # Date 1130222519 0 # Node ID b72ea98397c54ae9238fd9dd0c83c462fb1c2b80 # Parent 924c6ba240e68f09b90f8a1b2c3916467846bad7 [gaim-migrate @ 14103] Thanks, Sadrul. https://sourceforge.net/tracker/index.php?func=detail&aid=1336880&group_id=235&atid=300235 committer: Tailor Script diff -r 924c6ba240e6 -r b72ea98397c5 src/gtkconv.c --- a/src/gtkconv.c Tue Oct 25 06:15:13 2005 +0000 +++ b/src/gtkconv.c Tue Oct 25 06:41:59 2005 +0000 @@ -3687,7 +3687,7 @@ GaimBuddy *b; GaimGtkConversation *gtkconv = NULL; - memcpy(&n, sd->data, sizeof(n)); + n = *(GaimBlistNode **)sd->data; if (GAIM_BLIST_NODE_IS_CONTACT(n)) b = gaim_contact_get_priority_buddy((GaimContact*)n); @@ -3713,7 +3713,11 @@ } else { c = gaim_conversation_new(GAIM_CONV_TYPE_IM, b->account, b->name); gtkconv = GAIM_GTK_CONVERSATION(c); - gaim_gtk_conv_window_add_gtkconv(win, gtkconv); + if (gtkconv->win != win) + { + gaim_gtk_conv_window_remove_gtkconv(gtkconv->win, gtkconv); + gaim_gtk_conv_window_add_gtkconv(win, gtkconv); + } } /* Make this conversation the active conversation */ @@ -3741,7 +3745,11 @@ { c = gaim_conversation_new(GAIM_CONV_TYPE_IM, account, username); gtkconv = GAIM_GTK_CONVERSATION(c); - gaim_gtk_conv_window_add_gtkconv(win, gtkconv); + if (gtkconv->win != win) + { + gaim_gtk_conv_window_remove_gtkconv(gtkconv->win, gtkconv); + gaim_gtk_conv_window_add_gtkconv(win, gtkconv); + } } }