calendar: Fix updating decade overview

Always update model when switching to decade overview.

REVIEW: 125893
This commit is contained in:
David Rosca 2015-10-31 22:16:32 +01:00
parent 73712057b2
commit 1e867f276b

View File

@ -252,7 +252,10 @@ PinchArea {
onPrevious: calendarBackend.previousYear()
onNext: calendarBackend.nextYear()
onHeaderClicked: stack.push(decadeOverview)
onHeaderClicked: {
updateDecadeOverview();
stack.push(decadeOverview)
}
onActivated: {
calendarBackend.goToMonth(date.monthNumber)
stack.pop()