[billreminder commit] r607 - in trunk/src: gui lib

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 15, 2008, 2:48:33 PM7/15/08
to billremi...@googlegroups.com
Author: og.maciel
Date: Tue Jul 15 11:48:12 2008
New Revision: 607

Modified:
trunk/src/gui/Changelog
trunk/src/gui/maindialog.py
trunk/src/lib/Changelog
trunk/src/lib/dialogs.py

Log:
Fixed regression from r.557 that caused records to be reset upon editing

Modified: trunk/src/gui/Changelog
==============================================================================
--- trunk/src/gui/Changelog (original)
+++ trunk/src/gui/Changelog Tue Jul 15 11:48:12 2008
@@ -1,3 +1,7 @@
+2008-07-15 Og Maciel <ogma...@gnome.org>
+
+ * maindialog.py: Fixed regression from r.557 that caused records
to be reset upon editing
+
2008-07-14 Og Maciel <ogma...@gnome.org>

* maindialog.py: No need to cast value passed from View submenus
to strings

Modified: trunk/src/gui/maindialog.py
==============================================================================
--- trunk/src/gui/maindialog.py (original)
+++ trunk/src/gui/maindialog.py Tue Jul 15 11:48:12 2008
@@ -386,7 +386,7 @@

def edit_bill(self):
records = dialogs.edit_dialog(parent=self.window,
- record=self.currentrecord)
+ record=self.currentrecord)

# Checks if the user did not cancel the action
if records:

Modified: trunk/src/lib/Changelog
==============================================================================
--- trunk/src/lib/Changelog (original)
+++ trunk/src/lib/Changelog Tue Jul 15 11:48:12 2008
@@ -1,3 +1,7 @@
+2008-07-15 Og Maciel <ogma...@gnome.org>
+
+ * dialogs.py: Fixed regression from r.557 that caused records to
be reset upon editing
+
2008-07-10 Og Maciel <ogma...@gnome.org>

* common.py: Make use of gconf values

Modified: trunk/src/lib/dialogs.py
==============================================================================
--- trunk/src/lib/dialogs.py (original)
+++ trunk/src/lib/dialogs.py Tue Jul 15 11:48:12 2008
@@ -58,13 +58,14 @@
return record

def edit_dialog(record, parent=None):
- record = None
# Dialog Title
dialog = AddDialog(title=_("Edit a Record"), parent=parent, record=record)
response = dialog.run()
# Checks if the user did not cancel the action
if response == gtk.RESPONSE_ACCEPT:
record = dialog.get_record()
+ else:
+ record = None
dialog.destroy()

return record

Reply all
Reply to author
Forward
0 new messages