[lobby-svn] SF.net SVN: lobby:[1057] trunk/src_client/net/yura/lobby/client/ LobbyClientGUI.java
Brought to you by:
yuranet
From: <yu...@us...> - 2025-05-06 14:37:09
|
Revision: 1057 http://sourceforge.net/p/lobby/code/1057 Author: yuranet Date: 2025-05-06 14:36:52 +0000 (Tue, 06 May 2025) Log Message: ----------- pick first item Modified Paths: -------------- trunk/src_client/net/yura/lobby/client/LobbyClientGUI.java Modified: trunk/src_client/net/yura/lobby/client/LobbyClientGUI.java =================================================================== --- trunk/src_client/net/yura/lobby/client/LobbyClientGUI.java 2025-05-05 21:31:02 UTC (rev 1056) +++ trunk/src_client/net/yura/lobby/client/LobbyClientGUI.java 2025-05-06 14:36:52 UTC (rev 1057) @@ -1588,7 +1588,7 @@ DefaultMutableTreeNode gtNode = new DefaultMutableTreeNode(gt); root.add(gtNode); - if (gt.equals(current) || list.size() == 1) { + if (gt.equals(current) || c == 0) { found = new TreePath(gtNode.getPath()); } //System.out.println("Added: "+gt.toString()+" to the game types"); @@ -1597,7 +1597,7 @@ DefaultTreeModel gameTypesModel = new DefaultTreeModel(root); gameTypes.setModel(gameTypesModel); - if (found!=null) { + if (found != null) { gameTypes.setSelectionPath(found); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |