Skip to content

Commit

Permalink
Prevent hyperlink tagging being added as an undo action
Browse files Browse the repository at this point in the history
When the mouse hovers over a link in the note editor it is
highlighted. This was stacked as an undoable action and as a
result clicking the undo button sometimes had no noticeable
effect.

Fixes #13267.
  • Loading branch information
Nick-Hall committed May 4, 2024
1 parent 2603f4e commit 51205e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gramps/gui/widgets/undoablestyledbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def undo_disabled(self):
self.not_undoable_action = oldflag

def on_tag_insert_undoable(self, buffer, tag, start, end):
if tag.get_property("name") == "hyperlink":
return
if not self.undo_in_progress:
self._empty_redo_stack()
if self.not_undoable_action:
Expand Down

0 comments on commit 51205e5

Please sign in to comment.