forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user