Fix : Only possible to open event menu if event is actually displayed.

This commit is contained in:
Khopa 2019-07-11 21:38:59 +02:00
parent adb9e38ff4
commit a397296624

View File

@ -34,6 +34,7 @@ class QMapEvent(QGraphicsRectItem):
painter.restore() painter.restore()
def mousePressEvent(self, event:QGraphicsSceneMouseEvent): def mousePressEvent(self, event:QGraphicsSceneMouseEvent):
if self.parent.get_display_rule("events"):
self.openBriefing() self.openBriefing()
def openBriefing(self): def openBriefing(self):