Cannot delete when the rect has no scene..

distribute_dis
Tyler Goodlet 2023-12-26 17:36:34 -05:00
parent d9c574e291
commit 88f415e5b8
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ class SelectRect(QtWidgets.QGraphicsRectItem):
'''
scen: QGraphicsScene = self.scene()
if scen is None:
return
scen.removeItem(self)
if (
self._label