From b795bd8042871cbfd741a365396184d51d6df64e Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 19 Sep 2022 12:08:38 +0200 Subject: VcsPlugin: Use VcsCommand::done() signal instead of finished() Conform to QtcProcess interface. Use result() when needed. Change-Id: Idd4c71d9a103e8649b08ec7787c2f286423a31ec Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/wizard/vcscommandpage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/vcsbase/wizard/vcscommandpage.cpp') 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; -- cgit v1.2.3