Maemo: Fix displaying error output during deployment.

This commit is contained in:
Christian Kandeler
2011-04-07 12:15:25 +02:00
parent 17740d2ec3
commit 408763b43c

View File

@@ -979,10 +979,12 @@ void MaemoDeployStep::handleDeviceInstallerOutput(const QByteArray &output)
void MaemoDeployStep::handleDeviceInstallerErrorOutput(const QByteArray &output) void MaemoDeployStep::handleDeviceInstallerErrorOutput(const QByteArray &output)
{ {
ASSERT_STATE(QList<State>() << InstallingToDevice << StopRequested); ASSERT_STATE(QList<State>() << InstallingToDevice << CopyingFile
<< StopRequested);
switch (m_state) { switch (m_state) {
case InstallingToDevice: case InstallingToDevice:
case CopyingFile:
case StopRequested: case StopRequested:
m_installerStderr += output; m_installerStderr += output;
writeOutput(QString::fromUtf8(output), ErrorOutput); writeOutput(QString::fromUtf8(output), ErrorOutput);