[hamster-applet] don't go anywhere without an activity name
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't go anywhere without an activity name
- Date: Wed, 10 Feb 2010 09:01:19 +0000 (UTC)
commit f1818329dd6c3f29999fc6fa3b0935ddd665200e
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Feb 10 09:00:56 2010 +0000
don't go anywhere without an activity name
src/hamster/db.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/db.py b/src/hamster/db.py
index 50eabbd..7701a86 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -460,6 +460,10 @@ class Storage(storage.Storage):
activity = stuff.parse_activity_input(activity_name)
+ # make sure that we do have an activity name after parsing
+ if not activity.activity_name:
+ return
+
# explicitly stated takes precedence
activity.description = description or activity.description
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]