From c8ed9f4b75d111d9bde6b4fb88f00b35f1adad00 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 27 Apr 2016 11:36:46 +0200 Subject: [PATCH] QmlProfiler: Always enable the "debug messages" feature We always have at least one debug message: The one the debug server itself generates. So, let's unconditionally mark the feature as recorded when loading data. As the debug messages arrive in a different debug client, the trace client doesn't know about them otherwise, and if the feature is not marked as recorded you cannot hide the respective category with the filter menu. Change-Id: I68925697486a9461d66560b10947fde70b8a6730 Reviewed-by: Christian Kandeler --- src/libs/qmldebug/qmlprofilertraceclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/qmldebug/qmlprofilertraceclient.cpp b/src/libs/qmldebug/qmlprofilertraceclient.cpp index 09c22dc4fc7..17cbb38f512 100644 --- a/src/libs/qmldebug/qmlprofilertraceclient.cpp +++ b/src/libs/qmldebug/qmlprofilertraceclient.cpp @@ -174,7 +174,7 @@ bool QmlProfilerTraceClientPrivate::updateFeatures(ProfileFeature feature) if (!(requestedFeatures & flag)) return false; if (!(recordedFeatures & flag)) { - recordedFeatures |= flag; + recordedFeatures |= (flag | 1ULL << ProfileDebugMessages); emit q->recordedFeaturesChanged(recordedFeatures); } return true;