hamster-applet r807 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r807 - trunk/hamster
- Date: Fri, 27 Feb 2009 11:44:25 +0000 (UTC)
Author: tbaugis
Date: Fri Feb 27 11:44:25 2009
New Revision: 807
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=807&view=rev
Log:
fixed case when editing today's activity
Modified:
trunk/hamster/edit_activity.py
Modified: trunk/hamster/edit_activity.py
==============================================================================
--- trunk/hamster/edit_activity.py (original)
+++ trunk/hamster/edit_activity.py Fri Feb 27 11:44:25 2009
@@ -362,8 +362,8 @@
buf.set_text(fact["description"] or "")
self.get_widget('description').set_buffer(buf)
- if not fact["end_time"] and fact["start_time"].date() == dt.datetime.today():
- self.get_widget("in_progress").set_active(True)
+ if not end_date and fact["start_time"].date() == dt.date.today():
+ end_date = dt.datetime.now()
self.get_widget("save_button").set_label("gtk-save")
self.window.set_title(_("Update activity"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]