Skip line stage when chart not yet initialized

ordermodepps_backup
Tyler Goodlet 2021-07-23 12:17:59 -04:00
parent 0f417f8c80
commit 9887b14518
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: