changeset 7890:438b4667db0d

[gaim-migrate @ 8550] "Really simple patch to make the "Cancel All" button in the connection progress dialog only cancel connections that are in progress. If an account has already connected successfully, don't disconnect it." -- Daniel Atallah (datallah) i tend to agree this is more intuitive. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 18 Dec 2003 00:31:26 +0000
parents 7e1bb4deca24
children 62f885e37afd
files src/gtkconn.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconn.c	Wed Dec 17 09:33:05 2003 +0000
+++ b/src/gtkconn.c	Thu Dec 18 00:31:26 2003 +0000
@@ -73,7 +73,8 @@
 
 	while (m) {
 		meter = m->data;
-		cancel_signon(NULL, meter);
+		if (gaim_connection_get_state(meter->account->gc) != GAIM_CONNECTED)
+			cancel_signon(NULL, meter);
 		m = m->next;
 	}
 }