From 2bc4139c65295810588e2028c8b1a46833c44f16 Mon Sep 17 00:00:00 2001 From: prculley Date: Sun, 1 Oct 2017 10:15:09 -0500 Subject: [PATCH] Fix 'Welcome' Gramplet and StyledTextEditor for Link handling Issue #10179 --- gramps/gui/widgets/styledtexteditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index 7f96510b8..e93e601fc 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -343,9 +343,9 @@ class StyledTextEditor(Gtk.TextView): """ self.selclick=False if ((event.type == Gdk.EventType.BUTTON_PRESS) and - (event.button == 1) and - (event.get_state() and get_primary_mask()) and - (self.url_match)): + (event.button == 1) and (self.url_match) and + (event.get_state() & get_primary_mask()) or + not self.get_editable())): flavor = self.url_match[MATCH_FLAVOR] url = self.url_match[MATCH_STRING]