--- a/eric7/EricWidgets/EricIconBar.py Tue Oct 26 17:42:19 2021 +0200 +++ b/eric7/EricWidgets/EricIconBar.py Tue Oct 26 17:43:17 2021 +0200 @@ -272,8 +272,6 @@ """ label = self.__layout.itemAt(index) if label: -# self.__layout.removeItem(label) -# self.__layout.removeWidget(label.widget()) with contextlib.suppress(IndexError): del self.__icons[index] itm = self.__layout.takeAt(index)