summaryrefslogtreecommitdiff
path: root/tropical/qt/caldrawer.py
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2024-09-19 10:49:35 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2024-09-19 10:49:35 +0200
commit8e24a71ea79f5ef6edeb7621916fd29f138176a1 (patch)
treef5554aa87b5440311e5d73139be06ef7bc29de38 /tropical/qt/caldrawer.py
parentf02e224d757c1098cff503a14322a004e8cccfe3 (diff)
Minor changes
Diffstat (limited to 'tropical/qt/caldrawer.py')
-rw-r--r--tropical/qt/caldrawer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tropical/qt/caldrawer.py b/tropical/qt/caldrawer.py
index 1f8245b..12645f9 100644
--- a/tropical/qt/caldrawer.py
+++ b/tropical/qt/caldrawer.py
@@ -218,7 +218,8 @@ class CalDrawerScene(QGraphicsScene):
b=event.button()
if self.mouseOver>=0 and b==Qt.MouseButton.LeftButton:
event.accept()
- self.selection=self.calState.getMonthDays()[self.mouseOver]
+ s=self.calState.getMonthDays()[self.mouseOver]
+ self.calState.setSelection(s[0],s[1],s[2])
event = QEvent(DaySelectedEvent)
QCoreApplication.postEvent(self.parent, event)