summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-09-20 18:44:30 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-09-20 19:10:02 +0000
commit294f2831920bbd86f4a7445aeccb17e3add27003 (patch)
tree4196f8775c14485fdc4414cef4eae66ae417aa7f
parent3e322ba3a679ee58287b17e8e624b8913263ee8f (diff)
Adapt to upstream changes
Change-Id: I508d2944eb16c9f72980a55989f57ce71474c0b0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r--plugins/fossil/fossilclient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/fossil/fossilclient.cpp b/plugins/fossil/fossilclient.cpp
index 52495c5..02306a3 100644
--- a/plugins/fossil/fossilclient.cpp
+++ b/plugins/fossil/fossilclient.cpp
@@ -1087,8 +1087,8 @@ void FossilClient::revertFile(const FilePath &workingDir,
// Indicate file list
VcsCommand *cmd = createCommand(workingDir);
const QStringList files = QStringList(workingDir.toString() + "/" + file);
- connect(cmd, &VcsCommand::finished, this, [this, files](bool success) {
- if (success)
+ connect(cmd, &VcsCommand::done, this, [this, files, cmd] {
+ if (cmd->result() == ProcessResult::FinishedWithSuccess)
emit changed(files);
});
enqueueJob(cmd, args);
@@ -1116,8 +1116,8 @@ void FossilClient::revertAll(const FilePath &workingDir, const QString &revision
// Indicate repository change
VcsCommand *cmd = createCommand(workingDir);
const QStringList files = QStringList(workingDir.toString());
- connect(cmd, &VcsCommand::finished, this, [this, files](bool success) {
- if (success)
+ connect(cmd, &VcsCommand::done, this, [this, files, cmd] {
+ if (cmd->result() == ProcessResult::FinishedWithSuccess)
emit changed(files);
});
enqueueJob(createCommand(workingDir), args);