mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
Revert: Desktop tree table bug with Refresh action #PL-2034
This commit is contained in:
parent
bc08db10b7
commit
fa92273187
@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user