Catch weird TypeError when aborting question
This commit is contained in:
parent
dcc43db14e
commit
9c26eba761
@ -293,7 +293,13 @@ class Question(QObject):
|
|||||||
aborted: Always emitted.
|
aborted: Always emitted.
|
||||||
"""
|
"""
|
||||||
self.is_aborted = True
|
self.is_aborted = True
|
||||||
|
try:
|
||||||
self.aborted.emit()
|
self.aborted.emit()
|
||||||
|
except TypeError:
|
||||||
|
# FIXME
|
||||||
|
# We seem to get "pyqtSignal must be bound to a QObject, not
|
||||||
|
# 'Question' here, which makes no sense at all..."
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Timer(QTimer):
|
class Timer(QTimer):
|
||||||
|
Loading…
Reference in New Issue
Block a user