From d699afa6a5660f753a199c4f46967f38feafbebe Mon Sep 17 00:00:00 2001 From: flatberg Date: Thu, 1 Mar 2007 15:03:53 +0000 Subject: [PATCH] fixed bu when trying to drag anything over an empty view --- fluents/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluents/view.py b/fluents/view.py index d1dfb9a..de6eb0d 100644 --- a/fluents/view.py +++ b/fluents/view.py @@ -214,7 +214,7 @@ class ViewFrame (gtk.Frame): elif isinstance(obj, fluents.dataset.Dataset): view = self.get_view() - if view.is_mappable_with(obj): + if view != None and view.is_mappable_with(obj): view._update_color_from_dataset(obj) elif isinstance(obj, fluents.dataset.Selection):