summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseeditor.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-09-19 12:08:38 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-09-20 10:41:35 +0000
commitb795bd8042871cbfd741a365396184d51d6df64e (patch)
tree9c25ac7148dcbe4230b2de58536ea1efd90a8dc3 /src/plugins/vcsbase/vcsbaseeditor.cpp
parent5e10ea19c1123293ae048e1eb66c3cb77fc0ea7b (diff)
downloadqt-creator-b795bd8042871cbfd741a365396184d51d6df64e.tar.gz
VcsPlugin: Use VcsCommand::done() signal instead of finished()
Conform to QtcProcess interface. Use result() when needed. Change-Id: Idd4c71d9a103e8649b08ec7787c2f286423a31ec Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseeditor.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseeditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp
index a52fafb17b..a962953fb1 100644
--- a/src/plugins/vcsbase/vcsbaseeditor.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditor.cpp
@@ -1394,7 +1394,9 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command)
if (command) {
d->m_progressIndicator = new ProgressIndicator(ProgressIndicatorSize::Large);
d->m_progressIndicator->attachToWidget(this);
- connect(command, &VcsCommand::finished, this, &VcsBaseEditorWidget::reportCommandFinished);
+ connect(command, &VcsCommand::done, this, [this] {
+ reportCommandFinished(d->m_command->result() == ProcessResult::FinishedWithSuccess);
+ });
QTimer::singleShot(100, this, &VcsBaseEditorWidget::showProgressIndicator);
}
}