Commit f1db83be authored by Friedemann Kleint's avatar Friedemann Kleint

Debugger/Python dumper: Fix checkRef() for Qt 5.

See http://codereview.qt-project.org/4533
(1173d0420e341dc6d38c89e5bc4295a57da7ea74 in qtbase)

Change-Id: I13d249c592b2607ee96c2feacbaefb73dd926867
Reviewed-on: http://codereview.qt-project.org/6324
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent b0a041c8
......@@ -425,7 +425,11 @@ def check(exp):
raise RuntimeError("Check failed")
def checkRef(ref):
count = ref["_q_value"]
count = 0
if qtMajorVersion() >= 5:
count = ref["atomic"]["_q_value"]
else:
count = ref["_q_value"]
check(count > 0)
check(count < 1000000) # assume there aren't a million references to any object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment