[hamster-applet] strip spaces as blank is blank
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] strip spaces as blank is blank
- Date: Wed, 4 Aug 2010 15:07:42 +0000 (UTC)
commit 717b1f635948d37c6e081e6e795eda48f7d1f411
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Aug 4 16:05:42 2010 +0100
strip spaces as blank is blank
src/hamster/widgets/activityentry.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/widgets/activityentry.py b/src/hamster/widgets/activityentry.py
index 4f9c1f4..228b589 100644
--- a/src/hamster/widgets/activityentry.py
+++ b/src/hamster/widgets/activityentry.py
@@ -102,7 +102,7 @@ class ActivityEntry(gtk.Entry):
self.populate_suggestions()
def get_value(self):
- activity_name = self.get_text().decode("utf-8")
+ activity_name = self.get_text().decode("utf-8").strip()
if not activity_name:
return None, False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]