From 42769705650bfdd3d0fde8ef881902bf04f93eb7 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 May 2015 11:25:20 -0400 Subject: [PATCH] Clipboard: some items are not tied to a specific database (text) --- gramps/gui/clipboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index 561e8ad68..93f12ddb4 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -1145,7 +1145,7 @@ class ClipboardListView(object): def object_pixbuf(self, column, cell, model, node, user_data=None): o = model.get_value(node, 1) - if o._dbid != self.dbstate.db.get_dbid(): + if o._dbid is not None and o._dbid != self.dbstate.db.get_dbid(): if isinstance(o.__class__.UNAVAILABLE_ICON, str): cell.set_property('icon-name', o.__class__.UNAVAILABLE_ICON)