Commit 022ff842 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Logging UIWall.text now works in --debug=all

parent 57aad2f9
......@@ -270,7 +270,10 @@ class EventData(str):
if hasattr(receiver, 'text'):
if receiver.__class__.__name__ != 'QAbstractSpinBox':
# accessing QAbstractSpinBox.text() gives a segfault
msg += '(%s)' % receiver.text()
try:
msg += '(%s)' % receiver.text()
except TypeError:
msg += '(%s)' % receiver.text
elif hasattr(receiver, 'objectName'):
msg += '(%s)' % receiver.objectName()
else:
......
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