Switch QML profiler off when deleting QQmlProfilerService
authorUlf Hermann <ulf.hermann@digia.com>
Thu, 2 Jan 2014 14:55:41 +0000 (15:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 17 Jan 2014 09:39:25 +0000 (10:39 +0100)
commit717ae864d258568e3dc94cd2d43b7b9d6375a222
tree5512e76c2e84b37553d452af279cc0ccc7d11f70
parent814504306df0b76da1654a74524bdc353527d06f
Switch QML profiler off when deleting QQmlProfilerService

Like this we don't have to check for QQmlProfilerService::instance
anymore in order to find out if we can use the profiler service. If
instance == 0 then enabled == false. Furthermore if it was thread safe
before it must still be thread safe like this.

Task-number: QTBUG-35315
Change-Id: Ie5737e3586f2431afbf11423ba53fd13dd371feb
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
src/qml/debugger/qqmlprofilerservice.cpp