[hamster-applet/gnome-2-32] respect the temporary flag (was offsync with the dropdown)



commit f7ad0f51860aa3181a47885a1963620bf4e64336
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Aug 22 10:06:27 2010 +0100

    respect the temporary flag (was offsync with the dropdown)

 src/hamster-time-tracker |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster-time-tracker b/src/hamster-time-tracker
index 7498258..c7e02fc 100755
--- a/src/hamster-time-tracker
+++ b/src/hamster-time-tracker
@@ -397,11 +397,13 @@ class ProjectHamster(object):
         self.get_widget("switch_activity").set_sensitive(widget.get_text() != "")
 
     def on_switch_activity_clicked(self, widget):
-        if not self.new_name.get_text():
+        activity_name, temporary = self.new_name.get_value()
+        if not activity_name:
             return False
 
         runtime.storage.add_fact(self.new_name.get_text().decode("utf8", "replace"),
-                                 self.new_tags.get_text().decode("utf8", "replace"))
+                                 self.new_tags.get_text().decode("utf8", "replace"),
+                                 temporary = temporary)
         self.new_name.set_text("")
         self.new_tags.set_text("")
 



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