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,7 +34,8 @@ class QMapEvent(QGraphicsRectItem):
painter.restore()
def mousePressEvent(self, event:QGraphicsSceneMouseEvent):
self.openBriefing()
if self.parent.get_display_rule("events"):
self.openBriefing()
def openBriefing(self):
self.briefing = QBriefingWindow(self.gameEvent)