forked from qt-creator/qt-creator
VcsCommand: Handle SilentOutput
Handle SilentOutput flag into accound when runSynchronous() to make it consistent with fully synchronous case. Change-Id: I955714872601f8fb7ffff8d570eec5ff610d9cfe Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -197,8 +197,12 @@ void VcsCommandPrivate::installStdCallbacks(QtcProcess *process)
|
|||||||
process->setStdOutCallback([this](const QString &text) {
|
process->setStdOutCallback([this](const QString &text) {
|
||||||
if (m_progressParser)
|
if (m_progressParser)
|
||||||
m_progressParser->parseProgress(text);
|
m_progressParser->parseProgress(text);
|
||||||
if (m_flags & VcsCommand::ShowStdOut)
|
if (m_flags & VcsCommand::ShowStdOut) {
|
||||||
emit q->append(text);
|
if (m_flags & VcsCommand::SilentOutput)
|
||||||
|
emit q->appendSilently(text);
|
||||||
|
else
|
||||||
|
emit q->append(text);
|
||||||
|
}
|
||||||
if (m_progressiveOutput)
|
if (m_progressiveOutput)
|
||||||
emit q->stdOutText(text);
|
emit q->stdOutText(text);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user