diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java index 3eb7cf414bf6..08aeca23a90a 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ import java.util.Collection; * author: lesya */ public class CvsRootAsStringConfigurationPanel { + private JTextField myCvsRoot; private JButton myEditFieldByFieldButton; private final Ref myIsUpdating; @@ -54,7 +55,7 @@ public class CvsRootAsStringConfigurationPanel { public void actionPerformed(ActionEvent e) { final CvsRootConfiguration cvsRootConfiguration = CvsApplicationLevelConfiguration.createNewConfiguration(CvsApplicationLevelConfiguration.getInstance()); - saveTo(cvsRootConfiguration); + cvsRootConfiguration.CVS_ROOT = FormUtils.getFieldValue(myCvsRoot, false); final EditCvsConfigurationFieldByFieldDialog dialog = new EditCvsConfigurationFieldByFieldDialog(myCvsRoot.getText()); dialog.show(); if (dialog.isOK()) {