From 321c704cac5aa6b042ad725e17c09df9e9406678 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 30 May 2012 13:49:00 +0000 Subject: [PATCH] protection in case quickview fails to load svn: r19708 --- src/plugins/gramplet/QuickViewGramplet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/gramplet/QuickViewGramplet.py b/src/plugins/gramplet/QuickViewGramplet.py index 8b9968d72..ea1d39022 100644 --- a/src/plugins/gramplet/QuickViewGramplet.py +++ b/src/plugins/gramplet/QuickViewGramplet.py @@ -88,7 +88,8 @@ class QuickViewGramplet(Gramplet): quick_view, active_handle, container=self.gui.textview) - self.set_has_data(docman.document.has_data) + if docman: + self.set_has_data(docman.document.has_data) else: self.clear_text() self.set_has_data(False)