diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 0f5732e715a..6b08077ebe9 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -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); }