summaryrefslogtreecommitdiff
path: root/noncore/games/solitaire/canvascardgame.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/solitaire/canvascardgame.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/solitaire/canvascardgame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/games/solitaire/canvascardgame.cpp b/noncore/games/solitaire/canvascardgame.cpp
index 8e07cc8..8250193 100644
--- a/noncore/games/solitaire/canvascardgame.cpp
+++ b/noncore/games/solitaire/canvascardgame.cpp
@@ -327,12 +327,13 @@ void CanvasCardGame::contentsMouseReleaseEvent(QMouseEvent *e)
c = oldPile->cardInfront(item);
oldPile->removeCard(item);
}
- pile->addCardToTop(item);
item->setCardPile(pile);
//item->move( pile->getCardPos(item) );
+ pile->addCardToTop(item);
QPoint p = pile->getCardPos(item);
item->setPos( p.x(), p.y(), highestZ );
highestZ++;
+ checkUnusable(); // added for freecell to move card to discard pile
if (item->getValue() == king && haveWeWon()) {
alphaCardPile->hide();