[hamster-applet] the autocomplete returns None, not a blank string in case if the field is blank



commit 65108bc4c2fb81d8099f1ba01ce923d12ba9623d
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Aug 4 16:07:29 2010 +0100

    the autocomplete returns None, not a blank string in case if the field is blank

 src/hamster/edit_activity.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py
index 6d0df91..936506a 100644
--- a/src/hamster/edit_activity.py
+++ b/src/hamster/edit_activity.py
@@ -273,9 +273,10 @@ class CustomFactController:
 
         self.draw_preview(start_time, end_time)
 
-        looks_good = activity_text != "" and start_time \
+        looks_good = activity_text is not None and start_time \
                      and (not end_time or (end_time - start_time).days == 0)
 
+
         self.get_widget("save_button").set_sensitive(looks_good)
         return looks_good
 



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