Skip line stage when chart not yet initialized

fsp_feeds
Tyler Goodlet 2021-07-23 12:17:59 -04:00
parent da3f149646
commit 4ce6edae70
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ class LineEditor:
and return it. and return it.
""" """
if self.chart is None:
log.error('No chart interaction yet available')
return None
# chart.setCursor(QtCore.Qt.PointingHandCursor) # chart.setCursor(QtCore.Qt.PointingHandCursor)
cursor = self.chart.linked.cursor cursor = self.chart.linked.cursor
if not cursor: if not cursor: