From c580979feec7865f91d07922d6282c8ddcef632f Mon Sep 17 00:00:00 2001 From: Khopa Date: Mon, 20 Jul 2020 20:36:57 +0200 Subject: [PATCH] Open base menu by single mouse click. --- qt_ui/widgets/map/QMapControlPoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt_ui/widgets/map/QMapControlPoint.py b/qt_ui/widgets/map/QMapControlPoint.py index f993c73a..aed62bb4 100644 --- a/qt_ui/widgets/map/QMapControlPoint.py +++ b/qt_ui/widgets/map/QMapControlPoint.py @@ -71,7 +71,8 @@ class QMapControlPoint(QGraphicsRectItem): self.update() def mousePressEvent(self, event:QGraphicsSceneMouseEvent): - self.contextMenuEvent(event) + self.openBaseMenu() + #self.contextMenuEvent(event) def contextMenuEvent(self, event: QGraphicsSceneContextMenuEvent):