From 28e95e44b36c6a3ae2079351a71c62299e5bac5c Mon Sep 17 00:00:00 2001 From: Nadim Ritter Date: Wed, 13 Mar 2024 13:07:16 +0100 Subject: [PATCH] SEBSERV-515 fix multiselection bug --- .../java/ch/ethz/seb/sebserver/gui/table/EntityTable.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java index 4015b6cd..bb97e8fa 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java @@ -224,7 +224,7 @@ public class EntityTable { } this.table.addListener(SWT.Selection, event -> { if (this.multiselection != null && event.item != null) { - if (event.item == null || event.item.isDisposed()) { + if (event.item.isDisposed()) { return; } handleMultiSelection((TableItem) event.item); @@ -530,9 +530,6 @@ public class EntityTable { // first remove all rows if there are some this.table.removeAll(); - if (this.multiselection != null) { - this.multiselection.clear(); - } // get page data and create rows final Page page = this.pageSupplier.newBuilder()