diff --git a/qwt/plot.py b/qwt/plot.py index 298382c..dd4d389 100644 --- a/qwt/plot.py +++ b/qwt/plot.py @@ -1560,9 +1560,9 @@ def insertLegend(self, legend, pos=None, ratio=-1): if self.__data.legend.parent() is not self: self.__data.legend.setParent(self) - self.blockSignals(True) + self.legendDataChanged.disconnect(self.updateLegendItems) self.updateLegend() - self.blockSignals(False) + self.legendDataChanged.connect(self.updateLegendItems) lpos = self.__data.layout.legendPosition()