1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug 462503 - Fix for ConnectionExistsException in Remote Connections

preference page

Change-Id: Ib49d82a51568d99d7db4bcf0e4d39b00f8c444ed
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2015-03-18 16:48:17 -04:00
parent cbb9d14e0b
commit bc00fb852f

View file

@ -298,7 +298,6 @@ public class RemoteConnectionWorkingCopy implements IRemoteConnectionWorkingCopy
} catch (BackingStoreException e1) {
throw new RemoteConnectionException(e1);
}
newAttributes.clear();
ISecurePreferences securePrefs = original.getSecurePreferences();
for (Map.Entry<String, String> entry : newSecureAttributes.entrySet()) {
@ -318,7 +317,13 @@ public class RemoteConnectionWorkingCopy implements IRemoteConnectionWorkingCopy
} catch (IOException e) {
throw new RemoteConnectionException(e);
}
/*
* Reset state for isDirty()
*/
newAttributes.clear();
newSecureAttributes.clear();
newName = null;
connectionType.addConnection(original);
if (added) {