Skip to content

Commit

Permalink
Fixed #28: existing comment now populated in dialog when adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcmullen committed Apr 11, 2016
1 parent 3c73cf3 commit 9c1be0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omnivore/tasks/hex_edit/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def perform(self, event):


def prompt_for_comment(e, s, ranges, desc):
text = prompt_for_string(e.window.control, desc, "Add Comment")
existing = s.get_first_comment(ranges)
text = prompt_for_string(e.window.control, desc, "Add Comment", existing)
if text is not None:
s.set_comment(ranges, text)
e.document.change_count += 1
Expand Down

0 comments on commit 9c1be0c

Please sign in to comment.