Commit a0134647 authored by Aurindam Jana's avatar Aurindam Jana Committed by Aurindam Jana

QmlEngine: Engine State transitions

Rectify wrong state transitions for "Attach to QML Port".

Change-Id: Ife55344fb5089513743ff14f6bb5f2cabeed0adb
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent cfb8417d
......@@ -198,7 +198,8 @@ void QmlEngine::connectionEstablished()
}
connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers()));
notifyEngineRunAndInferiorRunOk();
if (state() == EngineRunRequested)
notifyEngineRunAndInferiorRunOk();
}
void QmlEngine::beginConnection()
......@@ -247,7 +248,12 @@ void QmlEngine::retryMessageBoxFinished(int result)
// fall through
}
default:
if (state() == InferiorRunOk) {
notifyInferiorSpontaneousStop();
notifyInferiorIll();
} else {
notifyEngineRunFailed();
}
break;
}
}
......
Markdown is supported
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