diff options
author | Bennet Gerlach <bennet_gerlach@web.de> | 2011-06-21 23:21:35 +0200 |
---|---|---|
committer | Bennet Gerlach <bennet_gerlach@web.de> | 2011-06-21 23:21:35 +0200 |
commit | fd378778d17563d4a72b6970ab1639b809c43c47 (patch) | |
tree | b816553c1485e5106c7b888ed8bd197af9c3073b /src/jrummikub/control | |
parent | 82d69635a890c0147804132434a0fc7d45e8425b (diff) | |
download | JRummikub-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
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r-- | src/jrummikub/control/turn/HumanTurnControl.java | 3 |
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()); } |