[billreminder] Modified on_frequency_changed to make end date update when schedule changes
- From: Og B. Maciel <ogmaciel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [billreminder] Modified on_frequency_changed to make end date update when schedule changes
- Date: Fri, 17 Dec 2010 22:21:27 +0000 (UTC)
commit b7af804f19b15753c9dc7d5c8c86be58e0037f1e
Author: Peter Savage <silentkeystroke googlemail com>
Date: Fri Dec 17 22:14:05 2010 +0000
Modified on_frequency_changed to make end date update when schedule changes
src/gui/adddialog.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/adddialog.py b/src/gui/adddialog.py
index 4e06024..64d4319 100644
--- a/src/gui/adddialog.py
+++ b/src/gui/adddialog.py
@@ -348,11 +348,17 @@ class AddDialog(object):
return [self.currentrecord]
def on_frequency_changed(self, widget):
+ startDate = self.dueDate.get_date()
+ endDate = self.endDate.get_date()
+
frequency = widget.get_active_text()
if frequency == scheduler.SC_ONCE:
self.endDate.set_sensitive(False)
else:
self.endDate.set_sensitive(True)
+ if startDate > endDate:
+ self.endDate.set_date(self.dueDate.get_date())
+
def on_edit_categories_clicked(self, button, new = False):
category = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]