From 865f75bec6aba0e9dca8bb81d428d50b7c01e67e Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 25 Feb 2016 17:00:31 +0100 Subject: [client] fix stupid way of getting the sat's address for the root node of the location tree --- .../main/java/org/openslx/dozmod/gui/control/LocationSelector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dozentenmodul/src/main/java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java index 6a2bf4c1..032ba80f 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java @@ -21,9 +21,9 @@ import javax.swing.tree.TreePath; import org.apache.log4j.Logger; import org.openslx.bwlp.thrift.iface.Location; -import org.openslx.dozmod.Config; import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.helper.GridManager; +import org.openslx.dozmod.thrift.Session; import org.openslx.dozmod.thrift.cache.MetaDataCache; import org.openslx.thrifthelper.Comparators; import org.openslx.util.QuickTimer; @@ -132,7 +132,7 @@ public class LocationSelector extends JPanel { if (locations == null) return false; - DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(Config.getLastSatellite()); + DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(Session.getSatelliteAddress()); DefaultTreeModel treeModel = new DefaultTreeModel(rootNode, true); // build map containing the node object for each location for (Location loc : locations) { -- cgit v1.2.3-55-g7522