diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index 4ca5ae34..d075fbc9 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -600,5 +600,10 @@ class SelectRect(QtWidgets.QGraphicsRectItem): ''' scen: QGraphicsScene = self.scene() scen.removeItem(self) - if self._label: - scen.removeItem(self._label) + if ( + self._label + and + self._label_proxy + + ): + scen.removeItem(self._label_proxy)