Make Reminder alarm proposed time be 5 minutes into the future (no point in being right now - that time is already passed)
This commit is contained in:
parent
9dc0a620be
commit
304650dd54
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
* Allow 'this week', 'this month', 'this year' granularity in Timesheet reports. Default date range to start from this month.
|
* Allow 'this week', 'this month', 'this year' granularity in Timesheet reports. Default date range to start from this month.
|
||||||
* Allow 'All Projects' for timesheet reports.
|
* Allow 'All Projects' for timesheet reports.
|
||||||
|
* Make Reminder alarm proposed time be 5 minutes into the future (no point in being right now - that time is already passed)
|
||||||
|
|
||||||
# 0.6.2
|
# 0.6.2
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,9 @@ class ReminderDialog(QDialog):
|
||||||
parts = reminder.time_str.split(":")
|
parts = reminder.time_str.split(":")
|
||||||
self.time_edit.setTime(QTime(int(parts[0]), int(parts[1])))
|
self.time_edit.setTime(QTime(int(parts[0]), int(parts[1])))
|
||||||
else:
|
else:
|
||||||
self.time_edit.setTime(QTime.currentTime())
|
# Default to 5 minutes in the future
|
||||||
|
future = QTime.currentTime().addSecs(5 * 60)
|
||||||
|
self.time_edit.setTime(future)
|
||||||
self.form.addRow("&" + strings._("time") + ":", self.time_edit)
|
self.form.addRow("&" + strings._("time") + ":", self.time_edit)
|
||||||
|
|
||||||
# Recurrence type
|
# Recurrence type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue