forked from qt-creator/qt-creator
QmlProfiler: Fix running state
If a run finished not by using the 'Stop Profiling' button the Application Output pane still handled the respective tab as running. Change-Id: I283bea73fe9df86a89e6130ad6737a86e1dc0341 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -164,6 +164,7 @@ void QmlProfilerRunControl::notifyRemoteFinished()
|
|||||||
switch (d->m_profilerState->currentState()) {
|
switch (d->m_profilerState->currentState()) {
|
||||||
case QmlProfilerStateManager::AppRunning:
|
case QmlProfilerStateManager::AppRunning:
|
||||||
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying);
|
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying);
|
||||||
|
d->m_running = false;
|
||||||
emit finished();
|
emit finished();
|
||||||
break;
|
break;
|
||||||
case QmlProfilerStateManager::Idle:
|
case QmlProfilerStateManager::Idle:
|
||||||
@@ -193,6 +194,7 @@ void QmlProfilerRunControl::cancelProcess()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
d->m_running = false;
|
||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,6 +224,7 @@ void QmlProfilerRunControl::wrongSetupMessageBox(const QString &errorMessage)
|
|||||||
// KILL
|
// KILL
|
||||||
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying);
|
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying);
|
||||||
d->m_noDebugOutputTimer.stop();
|
d->m_noDebugOutputTimer.stop();
|
||||||
|
d->m_running = false;
|
||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,6 +271,7 @@ void QmlProfilerRunControl::profilerStateChanged()
|
|||||||
{
|
{
|
||||||
switch (d->m_profilerState->currentState()) {
|
switch (d->m_profilerState->currentState()) {
|
||||||
case QmlProfilerStateManager::Idle:
|
case QmlProfilerStateManager::Idle:
|
||||||
|
d->m_running = false;
|
||||||
emit finished();
|
emit finished();
|
||||||
d->m_noDebugOutputTimer.stop();
|
d->m_noDebugOutputTimer.stop();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user