GUI: Raster grid manager - fix bug with menu leaving without option resulting in deleted grid
Build and Publish / build (push) Successful in 23s
Build and Publish / build (push) Successful in 23s
This commit is contained in:
1 parent
0bd95d702b
commit
62d59aa057
1 file changed
+3
-2
@@ -168,7 +168,6 @@ class SampleCameraImageLabel(QGraphicsView):
|
||||
self.__state = SampleCameraImageState.IDLE
|
||||
|
||||
def __right_click_menu(self, event):
|
||||
self.drawing = False
|
||||
|
||||
menu = QMenu(self)
|
||||
|
||||
@@ -199,7 +198,9 @@ class SampleCameraImageLabel(QGraphicsView):
|
||||
|
||||
action = menu.exec_(self.mapToGlobal(event.pos()))
|
||||
|
||||
if action == show_coord_action:
|
||||
if action is None:
|
||||
return
|
||||
elif action == show_coord_action:
|
||||
self.__show_coords = not self.__show_coords
|
||||
elif action == scale_action:
|
||||
self.__autoscale = not self.__autoscale
|
||||
|
||||
Reference in new issue
Block a user