We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5794746 commit f2244fbCopy full SHA for f2244fb
1 file changed
src/silx/gui/plot/tools/profile/core.py
@@ -126,7 +126,10 @@ def _setPlotItem(self, plotItem):
126
previousPlotItem = self.getPlotItem()
127
if previousPlotItem is plotItem:
128
return
129
- self.__plotItem = weakref.ref(plotItem)
+ if plotItem is None:
130
+ self.__plotItem = None
131
+ else:
132
+ self.__plotItem = weakref.ref(plotItem)
133
self.sigPlotItemChanged.emit()
134
135
def getPlotItem(self):
0 commit comments