Commit 766df884 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Fixed no-legal moves showing after computer skips his turn.

Added needed updateBoard() call after computer and player skips their
parent e9888a7e
......@@ -72,8 +72,7 @@ void KReversiView::setGame(KReversiGame *game)
void KReversiView::setChipsPrefix(const QString &chipsPrefix)
QMetaObject::invokeMethod(m_qml_root, "setChipsPrefix",
Q_ARG(QVariant, chipsPrefix));
m_qml_root->setProperty("chipsImagePrefix", chipsPrefix);
void KReversiView::setShowBoardLabels(bool show)
......@@ -253,6 +252,7 @@ void KReversiView::slotComputerCantMove()
QMetaObject::invokeMethod(m_qml_root, "showPopup",
i18n("Computer can not move. It is your turn again.")));
void KReversiView::slotPlayerCantMove()
......@@ -261,6 +261,7 @@ void KReversiView::slotPlayerCantMove()
QMetaObject::invokeMethod(m_qml_root, "showPopup",
i18n("You can not perform any move. Computer takes next turn now.")));
void KReversiView::slotOnDelay()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment