# HG changeset patch # User dadubrow # Date 1285774326 18000 # Node ID cf885d0a590db7191c5a38e93543141a05bad19f # Parent 3717657ae3f1b31cde69a90df4782bedcf995aa9 Bug 12275 - remove old listeners before adding new ones diff -r 3717657ae3f1 -r cf885d0a590d 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