Skip to content

Commit

Permalink
set parent of timer (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Jun 9, 2023
1 parent dc255bd commit 402d237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/superqt/utils/_throttler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(
self._emissionPolicy = emissionPolicy
self._hasPendingEmission = False

self._timer = QTimer()
self._timer = QTimer(parent=self)
self._timer.setSingleShot(True)
self._timer.setTimerType(Qt.TimerType.PreciseTimer)
self._timer.timeout.connect(self._maybeEmitTriggered)
Expand Down

0 comments on commit 402d237

Please sign in to comment.