From c971997f1a538fde34abc54140d988c746d9357c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 16 Jun 2021 08:28:11 -0400 Subject: [PATCH] Don't access unset cursor --- piker/ui/_editors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index c54a5ddf..7026282d 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -122,6 +122,8 @@ class LineEditor: """ # chart.setCursor(QtCore.Qt.PointingHandCursor) + if not self.chart._cursor: + return None chart = self.chart._cursor.active_plot cursor = chart._cursor