Skip to content

Commit

Permalink
Changed to a better way to see if any items are selected in the account
Browse files Browse the repository at this point in the history
list
  • Loading branch information
KlasJoensson committed Aug 21, 2012
1 parent 87cb543 commit dca5b3e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -393,8 +393,8 @@ public void widgetSelected(SelectionEvent e) {
accountsListViewer.getList().select(0);
}
refreshOnSelectionChanged();
return container;

return container;
}

/**
Expand Down Expand Up @@ -434,7 +434,7 @@ private void refreshTable() {
}

private void refreshOnSelectionChanged() {
if ( accountsListViewer.getList().getSelection().length == 0 )
if ( accountsListViewer.getList().getSelectionCount() == 0 )
return;
String selectedAccountId =
extractAccountId( accountsListViewer.getList()
Expand Down

0 comments on commit dca5b3e

Please sign in to comment.