diff --git a/src/plugins/cvs/cvssettings.cpp b/src/plugins/cvs/cvssettings.cpp
index 26f1ca7b3cf29dd6374adddb292c70e0bb4bd5da..beda68459ba6b4a2707080d3ad794ed53adad9b4 100644
--- a/src/plugins/cvs/cvssettings.cpp
+++ b/src/plugins/cvs/cvssettings.cpp
@@ -94,7 +94,7 @@ void CVSSettings::toSettings(QSettings *settings) const
 
 bool CVSSettings::equals(const CVSSettings &s) const
 {
-    return promptToSubmit     == promptToSubmit
+    return promptToSubmit     == s.promptToSubmit
         && describeByCommitId == s.describeByCommitId
         && cvsCommand         == s.cvsCommand
         && cvsRoot            == s.cvsRoot