From fd378778d17563d4a72b6970ab1639b809c43c47 Mon Sep 17 00:00:00 2001 From: Bennet Gerlach Date: Tue, 21 Jun 2011 23:21:35 +0200 Subject: Sorting stones on hand now sets the view to display the appropriate row git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@558 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/turn/HumanTurnControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrummikub/control/turn/HumanTurnControl.java b/src/jrummikub/control/turn/HumanTurnControl.java index 43c2317..ee01f9f 100644 --- a/src/jrummikub/control/turn/HumanTurnControl.java +++ b/src/jrummikub/control/turn/HumanTurnControl.java @@ -251,6 +251,7 @@ public class HumanTurnControl extends AbstractTurnControl { } view.getHandPanel().setStones(turnInfo.getHand()); + view.getHandPanel().resetCurrentRow(); } private void sortByRuns() { @@ -300,7 +301,7 @@ public class HumanTurnControl extends AbstractTurnControl { view.getTablePanel().setStoneSets(turnInfo.getTable()); view.getHandPanel().setStones(turnInfo.getHand()); view.setSelectedStones(selectedStones); - + tableUpdateEvent.emit(turnInfo.getTable()); } -- cgit v1.2.3