OSDN Git Service

Maemo: Inform debugger engine about connection loss.
authorChristian Kandeler <christian.kandeler@nokia.com>
Fri, 11 Feb 2011 13:20:23 +0000 (14:20 +0100)
committerChristian Kandeler <christian.kandeler@nokia.com>
Fri, 11 Feb 2011 13:21:05 +0000 (14:21 +0100)
Task-number: QTCREATORBUG-3783

src/plugins/debugger/debuggerengine.h
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp

index ea69d5c..c70766b 100644 (file)
@@ -249,6 +249,8 @@ public:
 
     virtual bool canDisplayTooltip() const { return state() == InferiorStopOk; }
 
+    virtual void notifyInferiorIll();
+
 signals:
     void stateChanged(const Debugger::DebuggerState &state);
     void updateViewsRequested();
@@ -296,7 +298,6 @@ protected:
     virtual void notifyEngineShutdownOk();
     virtual void notifyEngineShutdownFailed();
 
-    virtual void notifyInferiorIll();
     virtual void notifyEngineIll();
 
     virtual void setupEngine() = 0;
index ed974a2..1dacab4 100644 (file)
@@ -171,6 +171,8 @@ void MaemoDebugSupport::handleSshError(const QString &error)
     if (m_state == Debugging) {
         showMessage(tr("SSH connection error: %1").arg(error),
             AppError);
+        if (m_engine)
+            m_engine->notifyInferiorIll();
     } else if (m_state != Inactive) {
         handleAdapterSetupFailed(error);
     }