mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
use selctionChanged signal
This commit is contained in:
parent
e735700876
commit
ac19a75aa0
1 changed files with 4 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ class TasksWidget(QtWidgets.QWidget):
|
|||
layout.addWidget(tasks_view)
|
||||
|
||||
selection_model = tasks_view.selectionModel()
|
||||
selection_model.currentChanged.connect(self.task_changed)
|
||||
selection_model.selectionChanged.connect(self._on_task_change)
|
||||
|
||||
self._tasks_model = tasks_model
|
||||
self._tasks_proxy = tasks_proxy
|
||||
|
|
@ -293,3 +293,6 @@ class TasksWidget(QtWidgets.QWidget):
|
|||
if index.isValid() and selection_model.isSelected(index):
|
||||
return index.data(TASK_TYPE_ROLE)
|
||||
return None
|
||||
|
||||
def _on_task_change(self):
|
||||
self.task_changed.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue