diff --git a/bundles/org.eclipse.remote.core/src/org/eclipse/remote/internal/core/RemoteConnectionWorkingCopy.java b/bundles/org.eclipse.remote.core/src/org/eclipse/remote/internal/core/RemoteConnectionWorkingCopy.java index a5cb0e311ca..98f1588da36 100644 --- a/bundles/org.eclipse.remote.core/src/org/eclipse/remote/internal/core/RemoteConnectionWorkingCopy.java +++ b/bundles/org.eclipse.remote.core/src/org/eclipse/remote/internal/core/RemoteConnectionWorkingCopy.java @@ -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 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) {