Maemo: Inform debugger engine about connection loss.

Task-number: QTCREATORBUG-3783
This commit is contained in:
Christian Kandeler
2011-02-11 14:20:23 +01:00
parent 0d430277d4
commit ac26a8edaa
2 changed files with 4 additions and 1 deletions

View 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;

View 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);
}