[hamster-applet/gnome-2-30] allow changing case for activity. fixes bug 619676
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-30] allow changing case for activity. fixes bug 619676
- Date: Sat, 5 Jun 2010 18:32:43 +0000 (UTC)
commit 25772ea82540c606b18815899be535fe420894e8
Author: Toms Bauģis <toms baugis gmail com>
Date: Sat Jun 5 19:30:58 2010 +0100
allow changing case for activity. fixes bug 619676
src/hamster/preferences.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster/preferences.py b/src/hamster/preferences.py
index e598de9..693db4f 100755
--- a/src/hamster/preferences.py
+++ b/src/hamster/preferences.py
@@ -451,8 +451,8 @@ class PreferencesEditor:
#look for dupes
activities = runtime.storage.get_activities(category_id)
for activity in activities:
- if activity['name'].lower() == new_text.lower():
- if id == -1: # that was a new category
+ if id != activity['id'] and activity['name'].lower() == new_text.lower():
+ if id == -1: # that was a new activity
self.activity_store.remove(model.get_iter(path))
self.select_activity(activity['id'])
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]