diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 683629326..6a0004ec2 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -418,7 +418,7 @@ class ConversationTextview: if tags: # we clicked on sth special (it can be status message too) for tag in tags: tag_name = tag.get_property('name') - if tag_name is not None and tag_name in ('url', 'mail'): + if tag_name in ('url', 'mail'): return True # we block normal context menu # we check if sth was selected and if it was we assign diff --git a/src/htmltextview.py b/src/htmltextview.py index 12dfd51f1..e26b49252 100644 --- a/src/htmltextview.py +++ b/src/htmltextview.py @@ -508,7 +508,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler): if id_: tag = self.textbuf.create_tag(id_) else: - tag = self.textbuf.create_tag('span with no id') + tag = self.textbuf.create_tag() # we create anonymous tag for attr, val in [item.split(':', 1) for item in style.split(';') if len(item.strip())]: attr = attr.strip().lower() val = val.strip()