Make the timer connection queued

This commit is contained in:
Charles Haley 2010-07-20 20:19:00 +01:00
parent 90a89ca7a6
commit 72404b607b

View File

@ -84,7 +84,7 @@ class SearchBox2(QComboBox):
self.prev_search = ''
self.timer = QTimer()
self.timer.setSingleShot(True)
self.timer.timeout.connect(self.timer_event)
self.timer.timeout.connect(self.timer_event, Qt.QueuedConnection)
self.setInsertPolicy(self.NoInsert)
self.setMaxCount(self.MAX_COUNT)
self.setSizeAdjustPolicy(self.AdjustToMinimumContentsLengthWithIcon)