Merge "Fix editing inline comments"

This commit is contained in:
Jenkins 2014-04-30 21:42:05 +00:00 committed by Gerrit Code Review
commit 1d417143c3
1 changed files with 5 additions and 2 deletions

View File

@ -133,8 +133,11 @@ class DiffView(urwid.WidgetWrap):
key += '-' + str(comment.line)
key += '-' + str(comment.file)
comment_list = comment_lists.get(key, [])
message = [('comment-name', comment.name),
('comment', u': '+comment.message)]
if comment.pending:
message = comment.message
else:
message = [('comment-name', comment.name),
('comment', u': '+comment.message)]
comment_list.append((comment.key, message))
comment_lists[key] = comment_list
repo = self.app.getRepo(self.project_name)