From 579106828c49bce22dd808c45f84a4e8ad4b8638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Mon, 7 Jan 2013 18:40:42 +0100 Subject: [PATCH] Stats: do not display the played move in the header when the table is flipped --- qt/stats_widget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt/stats_widget.cpp b/qt/stats_widget.cpp index c645e08..5b1b50f 100644 --- a/qt/stats_widget.cpp +++ b/qt/stats_widget.cpp @@ -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()))