Debugger: Squash some (wrong) transition warnings on QmlEngine shutdown

Change-Id: I70d735d45012944b55476214c88a27abfd97612a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-11-07 17:55:05 +01:00
parent dfbdc1e543
commit 45f73d8729

View File

@@ -86,6 +86,7 @@
# define XSDEBUG(s) qDebug() << s
#define CB(callback) [this](const QVariantMap &r) { callback(r); }
#define CHECK_STATE(s) do { checkState(s, __FILE__, __LINE__); } while (0)
using namespace Core;
using namespace ProjectExplorer;
@@ -558,6 +559,7 @@ void QmlEngine::stopApplicationLauncher()
void QmlEngine::shutdownInferior()
{
CHECK_STATE(InferiorShutdownRequested);
// End session.
// { "seq" : <number>,
// "type" : "request",
@@ -1029,7 +1031,8 @@ void QmlEngine::quitDebugger()
{
d->automaticConnect = false;
d->retryOnConnectFail = false;
shutdownInferior();
stopApplicationLauncher();
closeConnection();
}
void QmlEngine::doUpdateLocals(const UpdateParameters &params)