forked from qt-creator/qt-creator
Maemo: Inform debugger engine about connection loss.
Task-number: QTCREATORBUG-3783
This commit is contained in:
@@ -249,6 +249,8 @@ public:
|
|||||||
|
|
||||||
virtual bool canDisplayTooltip() const { return state() == InferiorStopOk; }
|
virtual bool canDisplayTooltip() const { return state() == InferiorStopOk; }
|
||||||
|
|
||||||
|
virtual void notifyInferiorIll();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void stateChanged(const Debugger::DebuggerState &state);
|
void stateChanged(const Debugger::DebuggerState &state);
|
||||||
void updateViewsRequested();
|
void updateViewsRequested();
|
||||||
@@ -296,7 +298,6 @@ protected:
|
|||||||
virtual void notifyEngineShutdownOk();
|
virtual void notifyEngineShutdownOk();
|
||||||
virtual void notifyEngineShutdownFailed();
|
virtual void notifyEngineShutdownFailed();
|
||||||
|
|
||||||
virtual void notifyInferiorIll();
|
|
||||||
virtual void notifyEngineIll();
|
virtual void notifyEngineIll();
|
||||||
|
|
||||||
virtual void setupEngine() = 0;
|
virtual void setupEngine() = 0;
|
||||||
|
|||||||
@@ -171,6 +171,8 @@ void MaemoDebugSupport::handleSshError(const QString &error)
|
|||||||
if (m_state == Debugging) {
|
if (m_state == Debugging) {
|
||||||
showMessage(tr("SSH connection error: %1").arg(error),
|
showMessage(tr("SSH connection error: %1").arg(error),
|
||||||
AppError);
|
AppError);
|
||||||
|
if (m_engine)
|
||||||
|
m_engine->notifyInferiorIll();
|
||||||
} else if (m_state != Inactive) {
|
} else if (m_state != Inactive) {
|
||||||
handleAdapterSetupFailed(error);
|
handleAdapterSetupFailed(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user