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

Commit

Permalink
rhbz844820 - fix update page count bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Aug 23, 2012
1 parent 935bf16 commit 2052ea5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Expand Up @@ -651,7 +651,6 @@ else if (configHolder.isButtonUntranslated() && configHolder.isButtonFuzzy())
@Override
public void onRequestValidation(RequestValidationEvent event)
{
//If event.getTransUnitId is null it's fired from ValidationService which is caused by changing validation options.
if (Objects.equal(sourceContentsPresenter.getCurrentTransUnitIdOrNull(), currentTransUnitId))
{
for (ToggleEditor editor : display.getEditors())
Expand Down
Expand Up @@ -102,7 +102,6 @@ protected void init(GetTransUnitActionContext context)

private void requestTransUnitsAndUpdatePageIndex(final GetTransUnitActionContext context)
{
this.context = context;
Log.info("requesting transUnits: " + context);
final int itemPerPage = context.getCount();
final int offset = context.getOffset();
Expand Down Expand Up @@ -149,7 +148,6 @@ public void onSuccess(GetTransUnitListResult result)

private void requestNavigationIndex(GetTransUnitActionContext context)
{
this.context = context;
final int itemPerPage = context.getCount();
dispatcher.execute(GetTransUnitsNavigation.newAction(context), new AbstractAsyncCallback<GetTransUnitsNavigationResult>()
{
Expand Down Expand Up @@ -297,6 +295,7 @@ public void execute(UpdateContextCommand command)
{
requestNavigationIndex(newContext);
}
this.context = newContext;
}
}

Expand Down

0 comments on commit 2052ea5

Please sign in to comment.