forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user