Skip to content

Commit

Permalink
Merge pull request #91 from nicoddemus/fix-legend
Browse files Browse the repository at this point in the history
Fix: legend now showing up when enabled later
  • Loading branch information
PierreRaybaut authored Dec 18, 2024
2 parents 624d747 + 7d7014d commit 87e46d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qwt/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,9 +1562,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()

Expand Down

0 comments on commit 87e46d3

Please sign in to comment.