diff options
Diffstat (limited to 'src/plugins/vcsbase/wizard')
-rw-r--r-- | src/plugins/vcsbase/wizard/vcscommandpage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp index 4a4a1999b4..476d2ab0b5 100644 --- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp +++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp @@ -358,14 +358,14 @@ void VcsCommandPage::start(VcsCommand *command) QTC_ASSERT(m_state != Running, return); m_command = command; - command->setProgressiveOutput(true); - connect(command, &VcsCommand::stdOutText, this, [this](const QString &text) { + m_command->addFlags(RunFlags::ProgressiveOutput); + connect(m_command, &VcsCommand::stdOutText, this, [this](const QString &text) { m_formatter->appendMessage(text, StdOutFormat); }); - connect(command, &VcsCommand::stdErrText, this, [this](const QString &text) { + connect(m_command, &VcsCommand::stdErrText, this, [this](const QString &text) { m_formatter->appendMessage(text, StdErrFormat); }); - connect(command, &VcsCommand::done, this, [this] { + connect(m_command, &VcsCommand::done, this, [this] { finished(m_command->result() == ProcessResult::FinishedWithSuccess); }); QApplication::setOverrideCursor(Qt::WaitCursor); @@ -374,7 +374,7 @@ void VcsCommandPage::start(VcsCommand *command) m_statusLabel->setText(m_startedStatus); m_statusLabel->setPalette(QPalette()); m_state = Running; - command->start(); + m_command->start(); wizard()->button(QWizard::BackButton)->setEnabled(false); } |