# HG changeset patch # User Mark Doliner # Date 1075514566 0 # Node ID 0a0501566843a66e44ea0ff5e018a545b694d8db # Parent b75fa309b2c6fd2eb854afdd8044fc8b0cf2bf84 [gaim-migrate @ 8911] Daniel Atallah noticed a problem with my changes to the disconnect account dialog and submitted a patch. I did this instead because I think it's cleaner, but it might be an iota or three slower. But really, if you think about it, what's just one little iota when you sleep for BILLIONS of iotas a DAY? committer: Tailor Script diff -r b75fa309b2c6 -r 0a0501566843 src/gtkconn.c --- a/src/gtkconn.c Sat Jan 31 00:33:18 2004 +0000 +++ b/src/gtkconn.c Sat Jan 31 02:02:46 2004 +0000 @@ -362,6 +362,7 @@ gaim_account_is_connected(account) ? _("_Remove") : _("_Reconnect")); gtk_label_set_markup(GTK_LABEL(disconnect_window->label), label_text); gtk_dialog_set_response_sensitive(GTK_DIALOG(disconnect_window->window), GTK_RESPONSE_ACCEPT, TRUE); + gtk_tree_model_get_iter_first(model, &iter); if (gaim_account_is_connected(account) && !(gtk_tree_model_iter_next(model, &iter))) gtk_widget_hide(disconnect_window->reconnect_btn); else