summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBennet Gerlach <bennet_gerlach@web.de>2011-06-21 23:21:35 +0200
committerBennet Gerlach <bennet_gerlach@web.de>2011-06-21 23:21:35 +0200
commitfd378778d17563d4a72b6970ab1639b809c43c47 (patch)
treeb816553c1485e5106c7b888ed8bd197af9c3073b
parent82d69635a890c0147804132434a0fc7d45e8425b (diff)
downloadJRummikub-fd378778d17563d4a72b6970ab1639b809c43c47.tar
JRummikub-fd378778d17563d4a72b6970ab1639b809c43c47.zip
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
-rw-r--r--src/jrummikub/control/turn/HumanTurnControl.java3
1 files changed, 2 insertions, 1 deletions
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());
}