diff src/gtkconn.c @ 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 40b37b1e0905
children 4d4438f6ddce
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;
 	}
 }