Merge lp:~davidmhewitt/wingpanel-indicator-datetime/fix-1668175 into lp:~wingpanel-devs/wingpanel-indicator-datetime/trunk
Proposed by
David Hewitt
Status: | Merged |
---|---|
Approved by: | Danielle Foré |
Approved revision: | 181 |
Merged at revision: | 181 |
Proposed branch: | lp:~davidmhewitt/wingpanel-indicator-datetime/fix-1668175 |
Merge into: | lp:~wingpanel-devs/wingpanel-indicator-datetime/trunk |
Diff against target: |
27 lines (+10/-2) 1 file modified
src/Widgets/calendar/CalendarView.vala (+10/-2) |
To merge this branch: | bzr merge lp:~davidmhewitt/wingpanel-indicator-datetime/fix-1668175 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
WingPanel Devs | Pending | ||
Review via email: mp+318351@code.launchpad.net |
Commit message
Prevent skipping months by checking bounds of next/previous month
Description of the change
Previously, the indicator would try to go to the same date in the next/previous month. It didn't do any checks to see if the new month had enough days. So if you were on the last day of the month, and the next/previous month had less days, it would skip ahead 2 months.
Now, when you go to the next month, if there aren't enough days in the month, it simply selects the last day of the month instead.
To post a comment you must log in.