Bug 12275 - remove old listeners before adding new ones
authordadubrow
Wed, 29 Sep 2010 10:32:06 -0500
changeset 2113 cf885d0a590d
parent 2112 3717657ae3f1
child 2114 ffc0b039840b
Bug 12275 - remove old listeners before adding new ones
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java	Tue Sep 28 15:01:12 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java	Wed Sep 29 10:32:06 2010 -0500
@@ -165,6 +165,7 @@
 	protected Control createControl(Composite parent) {
 		
 		// This UI is recreated whenever the current connection changes.
+		removeListeners();
 		
 		// This is gross.  The normal parent of this is a toolbar,
 		// but we cannot add arbitrary stuff to the toolbar besides