aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/wizard/vcscommandpage.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/wizard/vcscommandpage.cpp
parent5e10ea19c1123293ae048e1eb66c3cb77fc0ea7b (diff)
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/wizard/vcscommandpage.cpp')
-rw-r--r--src/plugins/vcsbase/wizard/vcscommandpage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
index bf86416f5f..73681ba726 100644
--- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp
+++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
@@ -365,7 +365,9 @@ void VcsCommandPage::start(VcsCommand *command)
connect(command, &VcsCommand::stdErrText, this, [this](const QString &text) {
m_formatter->appendMessage(text, StdErrFormat);
});
- connect(command, &VcsCommand::finished, this, &VcsCommandPage::finished);
+ connect(command, &VcsCommand::done, this, [this] {
+ finished(m_command->result() == ProcessResult::FinishedWithSuccess);
+ });
QApplication::setOverrideCursor(Qt::WaitCursor);
m_logPlainTextEdit->clear();
m_overwriteOutput = false;