Revert: Desktop tree table bug with Refresh action #PL-2034

This commit is contained in:
Yuriy Artamonov 2013-04-23 12:23:55 +00:00
parent bc08db10b7
commit fa92273187

View File

@ -152,25 +152,11 @@ public class DesktopTreeTable
new TreeSelectionListener() {
@Override
public void valueChanged(TreeSelectionEvent e) {
if (isRowsAjusting || isRowSelecting)
if (isRowsAjusting)
return;
isRowSelecting = true;
try {
selectionBackup = getSelected();
final Set selected = getSelected();
if (selected.isEmpty()) {
datasource.setItem(null);
} else {
// reset selection and select new item
if (isMultiSelect())
datasource.setItem(null);
datasource.setItem((Entity) selected.iterator().next());
}
} finally {
isRowSelecting = false;
}
Entity entity = getSingleSelected();
datasource.setItem(entity);
}
}
);