[hamster-applet] checking for the real class now. fixes bug 630199



commit c3a40f14a9956874cb6a9c545d203e9aab80fc5f
Author: Toms Bauģis <toms baugis gmail com>
Date:   Mon Sep 20 21:22:03 2010 +0100

    checking for the real class now. fixes bug 630199

 src/hamster/overview.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/overview.py b/src/hamster/overview.py
index 1969200..c53600a 100644
--- a/src/hamster/overview.py
+++ b/src/hamster/overview.py
@@ -179,7 +179,7 @@ class Overview(object):
     def on_fact_selection_changed(self, tree):
         """ enables and disables action buttons depending on selected item """
         fact = tree.get_selected_fact()
-        real_fact = fact is not None and isinstance(fact, dict)
+        real_fact = fact is not None and isinstance(fact, stuff.Fact)
 
         self.get_widget('remove').set_sensitive(real_fact)
         self.get_widget('edit').set_sensitive(real_fact)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]