From a902604bf921a3b641ee8b61d886669ce002ff5c Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 27 Aug 2014 08:21:53 +0200 Subject: [PATCH] =?UTF-8?q?Opraven=20refresh=20grid=C5=AF=20na=20z=C3=A1lo?= =?UTF-8?q?=C5=BEk=C3=A1ch=20"M=C3=A1=20st=C5=99ediska",=20"M=C3=A9=20komi?= =?UTF-8?q?se"=20a=20"V=C5=A1e"=20po=20smaz=C3=A1n=C3=AD=20nebo=20editaci?= =?UTF-8?q?=20z=C3=A1znamu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/ui/ListViewModel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/info/bukova/isspst/ui/ListViewModel.java b/src/main/java/info/bukova/isspst/ui/ListViewModel.java index 6884df8c..008789cc 100644 --- a/src/main/java/info/bukova/isspst/ui/ListViewModel.java +++ b/src/main/java/info/bukova/isspst/ui/ListViewModel.java @@ -191,6 +191,7 @@ public class ListViewModel { ListViewModel.this, "dataList"); BindUtils.postNotifyChange(null, null, ListViewModel.this, "dataBean"); + BindUtils.postGlobalCommand(null, null, "reloadRelated", null); } catch (DataIntegrityViolationException e) { Messagebox.show(StringUtils.localize("DbCannotDelete"), StringUtils.localize("Error"), Messagebox.OK, Messagebox.ERROR); } catch (AccessDeniedException e) { @@ -237,9 +238,8 @@ public class ListViewModel { dataList.set(selIndex, editBean); } - if (newRec) { - BindUtils.postGlobalCommand(null, null, "reloadRelated", null); - } + BindUtils.postGlobalCommand(null, null, "reloadRelated", null); + } @GlobalCommand