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)