# HG changeset patch # User Luke Schierer # Date 1095854069 0 # Node ID 79fafe47d91904f12bac782d374de526092c0ca6 # Parent 514768e1db90d2b45f9cdaa2d2824bbb2a205b2f [gaim-migrate @ 11027] " When using the radio_menu widgets and the "activate" signal is called, it is called for the old value and then the new value. In reading the callback code, I couldn't find a good reason that anything should be done with the previous account that was sending as (as it didn't seem to call any other signals, it just sets the active account). This patch makes it so that if the callback is called and the widget that initiated the signal is not active, the callback stops instead of spending the cycles to set up something that's going to be replaced in the next second anyway." --Dave West committer: Tailor Script diff -r 514768e1db90 -r 79fafe47d919 src/gtkconv.c --- a/src/gtkconv.c Wed Sep 22 03:55:23 2004 +0000 +++ b/src/gtkconv.c Wed Sep 22 11:54:29 2004 +0000 @@ -1891,6 +1891,9 @@ GaimConversation *conv; GaimGtkConversation *gtkconv; + if (gtk_check_menu_item_get_active((GtkCheckMenuItem*) m) == FALSE) + return; + conv = gaim_conv_window_get_active_conversation(win); gaim_conversation_set_account(conv, account);