mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix : Only possible to open event menu if event is actually displayed.
This commit is contained in:
parent
adb9e38ff4
commit
a397296624
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user