We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 627a70a commit 66f33ffCopy full SHA for 66f33ff
Chapter03/calendar_app.py
@@ -146,6 +146,11 @@ def clear_form(self):
146
self.event_detail.setPlainText('')
147
148
def populate_list(self):
149
+ # As reported by github user eramey16, we need the following line
150
+ # to unselect list items since the selected index may not exist
151
+ # in the new list. This line is not in the book code.
152
+ self.event_list.setCurrentRow(-1)
153
+
154
self.event_list.clear()
155
self.clear_form()
156
date = self.calendar.selectedDate()
0 commit comments