[hamster-applet] don't die if there is no name for the replaceable item
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't die if there is no name for the replaceable item
- Date: Wed, 18 Nov 2009 23:31:16 +0000 (UTC)
commit 3c32a80bd7bd6cd36051c4d1035a837098ed2159
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Nov 18 23:30:15 2009 +0000
don't die if there is no name for the replaceable item
hamster/widgets.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/hamster/widgets.py b/hamster/widgets.py
index dbf316f..e10ad44 100644
--- a/hamster/widgets.py
+++ b/hamster/widgets.py
@@ -42,7 +42,9 @@ class HintEntry(gtk.Entry):
parent = original_entry.parent
parent.remove(original_entry)
- self.set_name(original_entry.name)
+ if original_entry.name:
+ self.set_name(original_entry.name)
+
parent.add(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]