IDEMPIERE-306 Translation import/export: Unable to switch directory in the browser. Apply patch from a42niem ( Dirk Niemeyer )

This commit is contained in:
Heng Sin Low 2012-06-22 17:08:47 +08:00
parent 4da9bf4cac
commit da1443bf2d
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ public class FolderBrowser extends Window implements EventListener
public void onEvent(Event e) throws Exception
{
if(e.getName() == Events.ON_DOUBLE_CLICK && e.getTarget() instanceof ListItem)
if(e.getName().equals(Events.ON_DOUBLE_CLICK) && e.getTarget() instanceof ListItem)
{
int index = listDir.getSelectedIndex();
if (index >= 0)
@ -168,7 +168,7 @@ public class FolderBrowser extends Window implements EventListener
getFileListing(vnp.getValue());
}
}
else if(e.getName() == Events.ON_SELECT && e.getTarget() == listDir)
else if(e.getName().equals(Events.ON_SELECT) && e.getTarget() == listDir)
{
int index = listDir.getSelectedIndex();
if (index >= 0)