diff --git a/CHANGELOG.md b/CHANGELOG.md index bf3aef4..6f84661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ 🛠️ Bug fixes: +* [Issue #26](https://github.com/PlotPyStack/PlotPy/issues/26) - Item list panel should not allow to select a non-selectable item + ## Version 2.7.0 ## Supported versions of Python have been updated (drop support for Python 3.8, add support for Python 3.13): diff --git a/plotpy/panels/itemlist.py b/plotpy/panels/itemlist.py index 979ebf7..d830ed8 100644 --- a/plotpy/panels/itemlist.py +++ b/plotpy/panels/itemlist.py @@ -198,7 +198,7 @@ def current_row_changed(self, index): def selection_changed(self): """ """ - items = self.get_selected_items() + items = [item for item in self.get_selected_items() if item.can_select()] self.plot.select_some_items(items) self.plot.replot()