summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@digia.com>2013-07-24 16:15:49 +0200
committerChristiaan Janssen <christiaan.janssen@digia.com>2013-08-06 15:58:45 +0300
commitb65d80ab09ba168a729dcad1c8f003cd611f4ab8 (patch)
tree252c006e7853b6ecc6b3c49fb6204d2b44a65a4a
parentcb0ea6407fcac53f02be726476ad8fd43c32a208 (diff)
downloadqt-creator-b65d80ab09ba168a729dcad1c8f003cd611f4ab8.tar.gz
QmlProfiler: disable clear button while running
Task-id: 9607 Change-Id: I8c48405e69dbb6b5051427e6daf80f84c986d4b2 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofiler/qmlprofilertool.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/qmlprofilertool.cpp b/plugins/qmlprofiler/qmlprofilertool.cpp
index a0e0cfe454..79d41b98a5 100644
--- a/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -733,8 +733,13 @@ void QmlProfilerTool::serverRecordingChanged()
setRecording(d->m_profilerState->serverRecording());
// clear the old data each time we start a new profiling session
if (d->m_profilerState->serverRecording()) {
+ d->m_clearButton->setEnabled(false);
clearData();
d->m_profilerModelManager->prepareForWriting();
+ } else {
+ d->m_clearButton->setEnabled(true);
}
+ } else {
+ d->m_clearButton->setEnabled(true);
}
}