QmlProfiler: Disable loading of trace files while recording data

Change-Id: I32f1c6640bdde278e8342886f30e50a78c61b120
Task-number: QTCREATORBUG-13321
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-03 14:34:34 +01:00
committed by Ulf Hermann
parent 6264f7cb4d
commit 673cc77dd0
2 changed files with 7 additions and 0 deletions

View File

@@ -502,6 +502,11 @@ void QmlProfilerTool::showErrorDialog(const QString &error)
errorDialog->show();
}
void QmlProfilerTool::showLoadOption()
{
d->m_loadQmlTrace->setEnabled(!d->m_profilerState->serverRecording());
}
void QmlProfilerTool::showSaveOption()
{
d->m_saveQmlTrace->setEnabled(!d->m_profilerModelManager->isEmpty());
@@ -685,6 +690,7 @@ void QmlProfilerTool::clientRecordingChanged()
void QmlProfilerTool::serverRecordingChanged()
{
showLoadOption();
if (d->m_profilerState->currentState() == QmlProfilerStateManager::AppRunning) {
// clear the old data each time we start a new profiling session
if (d->m_profilerState->serverRecording()) {