From c9c859fbf3fc5efffdd62f522a4c86a6978f49e3 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Wed, 11 Feb 2026 10:33:10 +0000 Subject: [PATCH] fix: block signals in Session History to prevent recursion --- ui/session_history.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/session_history.py b/ui/session_history.py index 65456ae..6fa23d9 100644 --- a/ui/session_history.py +++ b/ui/session_history.py @@ -533,6 +533,9 @@ class SessionHistoryDialog(QDialog): def _load_projects(self): """Load projects for filter dropdown.""" current = self.project_filter.currentData() + + # Block signals to prevent recursion + self.project_filter.blockSignals(True) self.project_filter.clear() self.project_filter.addItem("All Projects", None) @@ -550,6 +553,9 @@ class SessionHistoryDialog(QDialog): self.project_filter.setCurrentIndex(idx) except Exception: pass + finally: + # Re-enable signals + self.project_filter.blockSignals(False) def _on_filter_changed(self): """Handle filter changes."""