hamster-applet r895 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r895 - trunk/hamster
- Date: Sun, 12 Apr 2009 20:45:40 +0000 (UTC)
Author: tbaugis
Date: Sun Apr 12 20:45:39 2009
New Revision: 895
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=895&view=rev
Log:
let's do delete->insert instead of insert->delete so we don't
confuse the overlap solver code (lame, ahahaha)
Modified:
trunk/hamster/edit_activity.py
Modified: trunk/hamster/edit_activity.py
==============================================================================
--- trunk/hamster/edit_activity.py (original)
+++ trunk/hamster/edit_activity.py Sun Apr 12 20:45:39 2009
@@ -617,13 +617,12 @@
else:
end_time = self._get_datetime("end")
-
- storage.add_fact(activity, start_time, end_time)
-
# we don't do updates, we do insert/delete. So now it is time to delete
if self.fact_id:
storage.remove_fact(self.fact_id)
+ storage.add_fact(activity, start_time, end_time)
+
# hide panel only on add - on update user will want to see changes
if not self.fact_id:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]