mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
Stats: do not display the played move in the header when the table is flipped
This commit is contained in:
parent
2fc948189f
commit
579106828c
1 changed files with 3 additions and 2 deletions
|
@ -178,9 +178,10 @@ void StatsWidget::refresh()
|
|||
for (unsigned i = 1; i <= histSize; ++i)
|
||||
{
|
||||
QString turnString = QString("#%1").arg(i);
|
||||
// Show the move played for this turn, if it is valid
|
||||
// Show the move played for this turn, if it is valid.
|
||||
// We don't show it when the table is flipped, because it looks ugly.
|
||||
const Move &move = m_game->getHistory().getTurn(i - 1).getMove();
|
||||
if (move.isValid())
|
||||
if (move.isValid() && !isFlipped())
|
||||
{
|
||||
turnString += QString(" (%1 - %2)")
|
||||
.arg(qfw(move.getRound().getWord()))
|
||||
|
|
Loading…
Reference in a new issue