From 2eff9ff962496468418c68f308c9b2466b32bc66 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 9 Mar 2023 11:40:18 +0100 Subject: [PATCH] fixed default action --- .../java/ch/ethz/seb/sebserver/gui/table/EntityTable.java | 5 +++++ 1 file changed, 5 insertions(+) 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 241604e1..74a5d295 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 @@ -213,6 +213,11 @@ public class EntityTable { if (selection != null) { this.pageService.executePageAction( defaultAction.withEntityKey(selection)); + } else { + final TableItem[] item = this.table.getSelection(); + if (item != null && item.length > 0) { + this.pageService.executePageAction(defaultAction); + } } }); }