Debugger: Replace newline with space in status message

Just removing newlines produces strange messages like:
"Cannot access memory at 0x1a2a3948Continuing nevertheless"

Change-Id: Ifca25bc14f4c10fc560066172f555a6f475af375
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-01-05 15:51:45 +02:00
committed by Orgad Shaneh
parent 31eb7c203d
commit 4f95c5d607

View File

@@ -2164,7 +2164,7 @@ void DebuggerPluginPrivate::showStatusMessage(const QString &msg0, int timeout)
{
showMessage(msg0, LogStatus);
QString msg = msg0;
msg.remove(QLatin1Char('\n'));
msg.replace(QChar::LineFeed, QChar::Space);
m_statusLabel->showStatusMessage(msg, timeout);
}