Skip to content

Commit

Permalink
All tscat_driver/model-connects need QueuedConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
pboettch committed May 28, 2024
1 parent 855699a commit 4e01124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tscat_gui/tscat_driver/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Union, Sequence, List

from PySide6.QtCore import QObject, QAbstractItemModel, Signal
from PySide6.QtCore import QObject, QAbstractItemModel, Signal, Qt
from tscat import _Event, _Catalogue

from .actions import Action
Expand All @@ -16,7 +16,7 @@ def __init__(self):
self._tscat_root = TscatRootModel()

from .driver import tscat_driver
tscat_driver.action_done.connect(self._action_done)
tscat_driver.action_done.connect(self._action_done, Qt.QueuedConnection)

def _action_done(self, action: Action) -> None:
self.action_done.emit(action)
Expand Down

0 comments on commit 4e01124

Please sign in to comment.