Debugger: Fix JS debugging on Harmattan PR1.2 v2.4.1
authorKai Koehne <kai.koehne@nokia.com>
Tue, 24 Jan 2012 12:20:42 +0000 (13:20 +0100)
committerEike Ziller <eike.ziller@nokia.com>
Tue, 24 Jan 2012 14:37:13 +0000 (15:37 +0100)
commit8cd370e16370df16843b24608a4a55df478fe93d
treee447477420fd83413efbeb68c937735a1e858903
parent4345fc8c36c4df74ab05a07cf6fa073081b96d26
Debugger: Fix JS debugging on Harmattan PR1.2

So far we assumend that the JSDebugAgent service switches to
the Enabled state after the constructor has run. That's apparently
not true for Harmattan PR1.2 (maybe the app / Qt calls process
events by hand, maybe it was a race condition from the start).

Fix this by checking the status already in the constructor, and
register ourselves as debugger agent if status == Enabled.

Change-Id: Icae189102116c8b572e05ce6c64f14b8f428ed2f
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp