Stats: do not display the played move in the header when the table is flipped

This commit is contained in:
Olivier Teulière 2013-01-07 18:40:42 +01:00
parent 2fc948189f
commit 579106828c

View file

@ -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()))