[billreminder: 16/17] Fixed an issue when adding new bill.



commit 7f9840083a1cc4a35e2fcd32b97f040b4d826f5c
Author: Luiz Armesto <luiz armesto gmail com>
Date:   Wed Feb 23 22:19:32 2011 -0300

    Fixed an issue when adding new bill.

 src/gui/maindialog.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/maindialog.py b/src/gui/maindialog.py
index d736b29..dc71051 100644
--- a/src/gui/maindialog.py
+++ b/src/gui/maindialog.py
@@ -288,7 +288,8 @@ class MainDialog:
         if records:
             # Add new bill to database
             for rec in records:
-                bill = self.actions.add(rec)
+                bill_id = self.actions.add(rec)
+                bill = self.actions.get_bills(id=bill_id)[0]
                 if bill:
                     self.list.add(self.format_row(bill))
             self.update_statusbar()



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