fix: block signals in Session History to prevent recursion
This commit is contained in:
parent
396a5451ac
commit
c9c859fbf3
|
|
@ -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."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue