Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit be8da9fd authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty() when it's possible

parent b4ac99fe
......@@ -74,7 +74,7 @@ void GameWidget::update()
{
moveLabel->setText(QString::number(m_game->currentMoveNumber()));
if (m_game->moves().size() > 0) {
if (!m_game->moves().isEmpty()) {
const Move last = m_game->lastMove();
if (last.player()->isWhite()) {
lastMoveLabel->setText(i18nc("Indication who played the last move", "%1 (white)", last.stone().toString()));
......
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