From c16948a9e47f6df3da055bb38274a5a32fb109e8 Mon Sep 17 00:00:00 2001 From: 02090095 Date: Thu, 17 Oct 2024 22:54:15 +0300 Subject: [PATCH] no message --- src/Common/Database/Tables/DataSet.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Common/Database/Tables/DataSet.java b/src/Common/Database/Tables/DataSet.java index cabb556d..d96054a9 100644 --- a/src/Common/Database/Tables/DataSet.java +++ b/src/Common/Database/Tables/DataSet.java @@ -60,9 +60,6 @@ public class DataSet extends DataSetAnchestor { protected DataSetControlForm createUI(JPanel mountPanel) { return null; } - public boolean hasUI() { - return ui != null; - } public void SelectAll(boolean flag) { for (D object : Data.values()) { if (object.isVisible()) @@ -224,7 +221,7 @@ public class DataSet extends DataSetAnchestor { return res; } public void SaveLastSelections() { - if (hasUI()) { + if (ui!=null) { Object lastPk = null; if ((CurrentName() != null) && (getCurrent() != null)) lastPk = getCurrent().getPK(); @@ -234,7 +231,7 @@ public class DataSet extends DataSetAnchestor { } } public void RestoreLastSelections() { - if (hasUI()) { + if (ui!=null) { Object lastPk = selections.get(getClass()); if ((CurrentName() != null) && (lastPk != null)) { ui.Select(lastPk);