Commit 673cc77d authored by Ulf Hermann's avatar Ulf Hermann Committed by Ulf Hermann
Browse files

QmlProfiler: Disable loading of trace files while recording data



Change-Id: I32f1c6640bdde278e8342886f30e50a78c61b120
Task-number: QTCREATORBUG-13321
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
parent 6264f7cb
......@@ -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()) {
......
......@@ -84,6 +84,7 @@ private slots:
void updateTimeDisplay();
void showSaveOption();
void showLoadOption();
void showSaveDialog();
void showLoadDialog();
......
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