aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs/cvsplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cvs/cvsplugin.cpp')
-rw-r--r--src/plugins/cvs/cvsplugin.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp
index 0fa8619e270..654fce42bb3 100644
--- a/src/plugins/cvs/cvsplugin.cpp
+++ b/src/plugins/cvs/cvsplugin.cpp
@@ -551,11 +551,9 @@ void CVSPlugin::revertCurrentFile()
QStringList args(QLatin1String("update"));
args.push_back(QLatin1String("-C"));
- const QStringList files = QStringList(file);
- const CVSResponse revertResponse = runCVS(args, files, cvsShortTimeOut, true);
+ const CVSResponse revertResponse = runCVS(args, QStringList(file), cvsShortTimeOut, true);
if (revertResponse.result == CVSResponse::Ok) {
fcb.setModifiedReload(true);
- m_versionControl->emitFilesChanged(files);
}
}
@@ -736,10 +734,7 @@ void CVSPlugin::updateProject()
if (!topLevels.empty()) {
QStringList args(QLatin1String("update"));
args.push_back(QLatin1String("-dR"));
- const CVSResponse response = runCVS(args, topLevels, cvsLongTimeOut, true);
- if (response.result == CVSResponse::Ok)
- foreach(const QString &topLevel, topLevels)
- m_versionControl->emitRepositoryChanged(topLevel);
+ runCVS(args, topLevels, cvsLongTimeOut, true);
}
}