fix: Connect start_discussion signal for todos in milestone widgets
Right-clicking on todos within milestone sections now properly opens the discussion dialog. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4c72d1fddc
commit
fe6a4d4429
|
|
@ -563,6 +563,7 @@ class ProjectDashboard(QWidget):
|
|||
widget.todo_toggled.connect(self._on_milestone_todo_toggled)
|
||||
widget.todo_deleted.connect(self._on_milestone_todo_deleted)
|
||||
widget.todo_added.connect(self._on_milestone_todo_added)
|
||||
widget.todo_start_discussion.connect(self._on_todo_start_discussion)
|
||||
# Keep legacy signals for deliverables mode (fallback)
|
||||
widget.deliverable_toggled.connect(self._on_deliverable_toggled)
|
||||
widget.deliverable_added.connect(self._on_deliverable_added)
|
||||
|
|
|
|||
|
|
@ -550,6 +550,7 @@ class MilestoneWidget(QFrame):
|
|||
todo_toggled = pyqtSignal(object, bool) # (todo, completed) - for linked todos mode
|
||||
todo_deleted = pyqtSignal(object) # (todo) - for linked todos mode
|
||||
todo_added = pyqtSignal(str, str, str) # (text, priority, milestone_id) - for adding new todos
|
||||
todo_start_discussion = pyqtSignal(object) # (todo) - for starting discussion from todo
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
@ -796,6 +797,7 @@ class MilestoneWidget(QFrame):
|
|||
widget = TodoItemWidget(todo, show_priority=True)
|
||||
widget.toggled.connect(self._on_todo_toggled_internal)
|
||||
widget.deleted.connect(self._on_todo_deleted_internal)
|
||||
widget.start_discussion.connect(self.todo_start_discussion.emit)
|
||||
self.deliverables_layout.addWidget(widget)
|
||||
else:
|
||||
# Legacy: Add deliverables
|
||||
|
|
|
|||
Loading…
Reference in New Issue