[hamster-applet/gnome-2-28] don't die on doubleclick on date
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-28] don't die on doubleclick on date
- Date: Tue, 19 Jan 2010 14:53:16 +0000 (UTC)
commit baabfb1d7d0bfb7ebd83bd078dd3faeffb6cada6
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Jan 19 14:53:03 2010 +0000
don't die on doubleclick on date
hamster/stats.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/hamster/stats.py b/hamster/stats.py
index 2c36394..b2c68a2 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -1230,8 +1230,9 @@ than 15 minutes you seem to be a busy bee." % ("<b>%d</b>" % short_percent))
def on_facts_row_activated(self, tree, path, column):
selection = tree.get_selection()
(model, iter) = selection.get_selected()
- custom_fact = CustomFactController(self, None, model[iter][0])
- custom_fact.show()
+ if model[iter][0] > -1:
+ custom_fact = CustomFactController(self, None, model[iter][0])
+ custom_fact.show()
def on_add_clicked(self, button):
selection = self.fact_tree.get_selection()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]