[hamster-applet/gnome-2-30] don't die if clicked in blank
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-30] don't die if clicked in blank
- Date: Wed, 5 May 2010 20:19:28 +0000 (UTC)
commit bd0281879a02fc7503f0f6f17e6ed6653a425686
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed May 5 21:08:21 2010 +0100
don't die if clicked in blank
src/hamster/widgets/tags.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/widgets/tags.py b/src/hamster/widgets/tags.py
index c6865f5..038c02d 100644
--- a/src/hamster/widgets/tags.py
+++ b/src/hamster/widgets/tags.py
@@ -247,6 +247,9 @@ class TagBox(graphics.Area):
self.redraw_canvas()
def on_tag_click(self, widget, regions):
+ if not regions:
+ return
+
tag = regions[0]
if tag in self.selected_tags:
#self.selected_tags.remove(tag)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]