fix: block signals in Session History to prevent recursion

This commit is contained in:
LemonNexus 2026-02-11 10:33:10 +00:00
parent 396a5451ac
commit c9c859fbf3
1 changed files with 6 additions and 0 deletions

View File

@ -533,6 +533,9 @@ class SessionHistoryDialog(QDialog):
def _load_projects(self): def _load_projects(self):
"""Load projects for filter dropdown.""" """Load projects for filter dropdown."""
current = self.project_filter.currentData() current = self.project_filter.currentData()
# Block signals to prevent recursion
self.project_filter.blockSignals(True)
self.project_filter.clear() self.project_filter.clear()
self.project_filter.addItem("All Projects", None) self.project_filter.addItem("All Projects", None)
@ -550,6 +553,9 @@ class SessionHistoryDialog(QDialog):
self.project_filter.setCurrentIndex(idx) self.project_filter.setCurrentIndex(idx)
except Exception: except Exception:
pass pass
finally:
# Re-enable signals
self.project_filter.blockSignals(False)
def _on_filter_changed(self): def _on_filter_changed(self):
"""Handle filter changes.""" """Handle filter changes."""