Profiler: Fix profiling when disabled on startup
authorKai Koehne <kai.koehne@nokia.com>
Thu, 3 Nov 2011 08:47:08 +0000 (09:47 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 3 Nov 2011 09:08:56 +0000 (10:08 +0100)
commitaf4e1ffbc02d897fc4268771632ea400c6a6ae45
treeef4a004489b54a735a6ad4cd077b5bc104528a86
parenta6eb40e66a546d75754d0e69fdddbe883379a636
Profiler: Fix profiling when disabled on startup

Don't try to call addEvent(EndTrace) if we've just received the inital
message telling us whether to profiler or not.

Change-Id: I78e7437fce46bc1eabfa0c3095ffe11f396c403e
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/declarative/debugger/qdeclarativedebugtrace.cpp