Commit 4dcb679e authored by hjk's avatar hjk
Browse files

Debugger: Restrict the QDir version hack to 5.2.x



Change-Id: Ic5560524b2c317c6062d5eebc9b8b7e79b7e504e
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 59a45ffa
......@@ -352,9 +352,10 @@ def qdump__QDir(d, value):
done = False
if d.qtVersion() >= 0x050200:
# Try to distinguish bool vs QStringList at the beginning:
firstValue = d.extractInt(privAddress)
if firstValue == 0 or firstValue == 1:
# Try to distinguish bool vs QStringList at the first item
# after the refcount:
firstValue = d.extractInt(privAddress + 4)
if firstValue == 0 or firstValue == 1 or d.qtVersion() >= 0x050300:
# Looks like a bool. Assume this is after 9fc0965.
done = True
if bit32:
......
Supports Markdown
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