Navigation Menu

Skip to content

Commit

Permalink
Fixed a secondary fault from commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KlasJoensson committed Aug 22, 2012
1 parent 0b4153c commit fd60bd5
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -58,6 +58,8 @@
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.PlatformUI;

import sun.swing.AccumulativeRunnable;

/**
* Dialog for editing an user and the users accounts
*
Expand Down Expand Up @@ -437,8 +439,11 @@ private void refreshOnSelectionChanged() {
/* If there's no item selected (e.g. if the user clicked below the last
* item in the list) we'll select the last item in the list. */
if ( accountsListViewer.getList().getSelectionCount() == 0 )
accountsListViewer.getList().select(accountsListViewer
.getList().getItemCount() - 1 );
if (accountsListViewer.getList().getItemCount() > 0)
accountsListViewer.getList()
.select(accountsListViewer.getList().getItemCount() - 1 );
else
return;

String selectedAccountId =
extractAccountId( accountsListViewer.getList()
Expand Down

0 comments on commit fd60bd5

Please sign in to comment.