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 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user