diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
index 2042341e80fe9707bc41a140dad17dc308c33778..4685fa180ceaa485870bb68556b7b0a9d359db62 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
@@ -368,9 +368,9 @@ void MaemoRunControl::stopInternal()
     AbstractMaemoRunControl::stopRunning(false);
 }
 
-void MaemoRunControl::handleRemoteOutput(const QString &output, bool onStdErr)
+void MaemoRunControl::handleRemoteOutput(const QString &output)
 {
-    emit addToOutputWindowInline(this, output, onStdErr);
+    emit addToOutputWindowInline(this, output, false);
 }
 
 
@@ -396,13 +396,13 @@ MaemoDebugRunControl::MaemoDebugRunControl(RunConfiguration *runConfiguration)
     connect(m_debuggerManager, SIGNAL(debuggingFinished()), this,
         SLOT(debuggingFinished()), Qt::QueuedConnection);
     connect(m_debuggerManager, SIGNAL(applicationOutputAvailable(QString, bool)),
-        this, SLOT(debuggerOutput(QString, bool)), Qt::QueuedConnection);
+        this, SLOT(debuggerOutput(QString)), Qt::QueuedConnection);
 }
 
 MaemoDebugRunControl::~MaemoDebugRunControl()
 {
-    disconnect(SIGNAL(addToOutputWindow(RunControl*,QString)));
-    disconnect(SIGNAL(addToOutputWindowInline(RunControl*,QString)));
+    disconnect(SIGNAL(addToOutputWindow(RunControl*,QString, bool)));
+    disconnect(SIGNAL(addToOutputWindowInline(RunControl*,QString, bool)));
     stop();
     debuggingFinished();
 }
@@ -420,13 +420,13 @@ QString MaemoDebugRunControl::remoteCall() const
         .arg(executableFilePathOnTarget()).arg(targetCmdLineSuffix());
 }
 
-void MaemoDebugRunControl::handleRemoteOutput(const QString &output, bool onStdErr)
+void MaemoDebugRunControl::handleRemoteOutput(const QString &output)
 {
     if (!m_debuggingStarted) {
         m_debuggingStarted = true;
         startDebugging();
     }
-    emit addToOutputWindowInline(this, output, onStdErr);
+    emit addToOutputWindowInline(this, output, false);
 }
 
 void MaemoDebugRunControl::startDebugging()
@@ -450,9 +450,9 @@ void MaemoDebugRunControl::debuggingFinished()
     AbstractMaemoRunControl::stopRunning(true);
 }
 
-void MaemoDebugRunControl::debuggerOutput(const QString &output, bool onStdErr)
+void MaemoDebugRunControl::debuggerOutput(const QString &output)
 {
-    emit appendMessage(this, QLatin1String("[gdb says:] ") + output, onStdErr);
+    emit appendMessage(this, QLatin1String("[gdb says:] ") + output, true);
 }
 
 QString MaemoDebugRunControl::gdbServerPort() const
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h
index 17fc4ddc75f1f6e0441a4b2eccba0df04e8f044f..4fe9744afaddc21cc3a09961adc387b726bda506 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h
@@ -86,7 +86,7 @@ protected:
     QString executableFilePathOnTarget() const;
 
 private slots:
-    virtual void handleRemoteOutput(const QString &output, bool onStdErr)=0;
+    virtual void handleRemoteOutput(const QString &output)=0;
     void handleInitialCleanupFinished();
     void handleDeployThreadFinished();
     void handleRunThreadFinished();
@@ -135,10 +135,12 @@ public:
     explicit MaemoRunControl(ProjectExplorer::RunConfiguration *runConfiguration);
     ~MaemoRunControl();
 
+private slots:
+    virtual void handleRemoteOutput(const QString &output);
+
 private:
     virtual void startInternal();
     virtual void stopInternal();
-    virtual void handleRemoteOutput(const QString &output, bool onStdErr);
     virtual QString remoteCall() const;
 };
 
@@ -151,13 +153,13 @@ public:
     bool isRunning() const;
 
 private slots:
-    void debuggerOutput(const QString &output, bool onStdErr);
+    virtual void handleRemoteOutput(const QString &output);
+    void debuggerOutput(const QString &output);
     void debuggingFinished();
 
 private:
     virtual void startInternal();
     virtual void stopInternal();
-    virtual void handleRemoteOutput(const QString &output, bool onStdErr);
     virtual QString remoteCall() const;
 
     QString gdbServerPort() const;
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemosshconnection.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemosshconnection.cpp
index 9a15a4a5fadb10003c44ff3be3bd09a9b08a45ed..11aa4cb85f5204128b548c7795408844de22620d 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemosshconnection.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemosshconnection.cpp
@@ -165,7 +165,7 @@ void MaemoInteractiveSshConnection::runCommand(const QString &command)
                 = strstr(output.data(), endMarker.toUtf8());
             if (endMarkerPos) {
                 if (endMarkerCount++ == 0) {
-                    emit remoteOutput(QLatin1String("========== Remote output starts now. =========="));
+                    emit remoteOutput(QLatin1String("========== Remote output starts now. ==========\n"));
                     firstCharToEmit = endMarkerPos + endMarkerLen + 1;
                     const char * const endMarkerPos2
                         = strstr(firstCharToEmit, endMarker.toUtf8());
@@ -192,7 +192,7 @@ void MaemoInteractiveSshConnection::runCommand(const QString &command)
                 emit remoteOutput(QString::fromUtf8(firstCharToEmit, charsToEmitCount));
         }
     } while (endMarkerCount < 2 && !stopRequested());
-    emit remoteOutput(QLatin1String("========== Remote output ends now. =========="));
+    emit remoteOutput(QLatin1String("========== Remote output ends now. ==========\n"));
 }
 
 MaemoInteractiveSshConnection::Ptr MaemoInteractiveSshConnection::create(const MaemoDeviceConfig &devConf)