Commit ac26a8ed authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Inform debugger engine about connection loss.

Task-number: QTCREATORBUG-3783
parent 0d430277
......@@ -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;
......
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment