[billreminder] As bills currently can only have one category, make sure to reset it before assigning new values.



commit afa26332a7ab9b8f4e1238509fdf1f4e7ece8f5a
Author: Og B. Maciel <ogmaciel gnome org>
Date:   Fri Nov 20 12:02:47 2009 -0500

    As bills currently can only have one category, make sure to reset it before assigning new values.

 src/gui/adddialog.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/adddialog.py b/src/gui/adddialog.py
index ccf3d52..c3efe90 100644
--- a/src/gui/adddialog.py
+++ b/src/gui/adddialog.py
@@ -452,6 +452,7 @@ class AddDialog(gtk.Dialog):
             self.currentrecord.notes = sbuffer
             #self.currentrecord.alarm = alarm
             if category:
+                self.currentrecord.category = []
                 self.currentrecord.category.append(category)
 
             #return the bill



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]