Minor: save result in m_commandResult.

This commit is contained in:
Gerhard Hoffmann 2025-02-21 12:41:26 +01:00
parent eddf67739a
commit 5bae9fcdf1

View File

@ -31,7 +31,8 @@ void Command::readyReadStandardOutput() {
if (p) { if (p) {
QString s = p->readAllStandardOutput(); QString s = p->readAllStandardOutput();
if (m_verbose) { if (m_verbose) {
qCritical().noquote() << s; // qCritical().noquote() << s;
m_commandResult += s;
} }
} }
} }
@ -39,7 +40,9 @@ void Command::readyReadStandardOutput() {
void Command::readyReadStandardError() { void Command::readyReadStandardError() {
QProcess *p = (QProcess *)sender(); QProcess *p = (QProcess *)sender();
if (p) { if (p) {
qCritical().noquote() << p->readAllStandardError(); QString s = p->readAllStandardError();
// qCritical().noquote() << s;
m_commandResult += s;
} }
} }