Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz978666 - fix comment change triggering concurrent edit warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 22, 2013
1 parent f13f2b5 commit 4211ab3
Showing 1 changed file with 7 additions and 8 deletions.
Expand Up @@ -279,6 +279,12 @@ public void refreshRow(TransUnit updatedTransUnit, EditorClientId editorClientId
// Ignored.
return;
}
if (updateType == TransUnitUpdated.UpdateType.AddComment)
{
targetContentsPresenter.updateCommentCount(updatedTransUnit.getId(), updatedTransUnit.getCommentsCount());
return;
}

if (Objects.equal(selectedId, updatedTransUnit.getId()) && !Objects.equal(editorClientId, translatorService.getCurrentEditorClientId()))
{
// updatedTU is our active row but done by another user
Expand All @@ -290,14 +296,7 @@ public void refreshRow(TransUnit updatedTransUnit, EditorClientId editorClientId
translationHistoryPresenter.displayEntries(latest, Collections.<TransHistoryItem> emptyList(), Collections.<ReviewComment>emptyList());
}
}
if (updateType == TransUnitUpdated.UpdateType.AddComment)
{
targetContentsPresenter.updateCommentCount(updatedTransUnit.getId(), updatedTransUnit.getCommentsCount());
}
else
{
targetContentsPresenter.updateRow(updatedTransUnit);
}
targetContentsPresenter.updateRow(updatedTransUnit);
}

// update type is web editor save or web editor save fuzzy and coming from
Expand Down

0 comments on commit 4211ab3

Please sign in to comment.