From 6bf33ab8993a5d940b31c64b6b8db4b03fd4e68c Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Wed, 28 Feb 2018 16:18:36 -0600 Subject: [PATCH] Fix Clipboard for right-click on empty clipboard (#566) Issues #10473 --- gramps/gui/clipboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index 10c15148b..3c3a84cd6 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -1540,6 +1540,8 @@ class MultiTreeView(Gtk.TreeView): if is_right_click(event): selection = widget.get_selection() store, paths = selection.get_selected_rows() + if not paths: + return tpath = paths[0] if len(paths) > 0 else None node = store.get_iter(tpath) if tpath else None o = None