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

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() ...@@ -198,7 +198,8 @@ void QmlEngine::connectionEstablished()
} }
connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers())); connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers()));
notifyEngineRunAndInferiorRunOk(); if (state() == EngineRunRequested)
notifyEngineRunAndInferiorRunOk();
} }
void QmlEngine::beginConnection() void QmlEngine::beginConnection()
...@@ -247,7 +248,12 @@ void QmlEngine::retryMessageBoxFinished(int result) ...@@ -247,7 +248,12 @@ void QmlEngine::retryMessageBoxFinished(int result)
// fall through // fall through
} }
default: default:
if (state() == InferiorRunOk) {
notifyInferiorSpontaneousStop();
notifyInferiorIll();
} else {
notifyEngineRunFailed(); notifyEngineRunFailed();
}
break; 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