This commit is contained in:
Nav
2023-08-25 19:56:02 +01:00
parent d20a0f0ed5
commit 61cbbc1a79

View File

@@ -407,10 +407,12 @@ namespace Widgets
} }
this->changeListPane->setDiffRanges(diffRanges); this->changeListPane->setDiffRanges(diffRanges);
const auto diffCount = this->differentialHexViewerSharedState.differences.size();
this->diffCountLabel->setText( this->diffCountLabel->setText(
count == 0 diffCount == 0
? "Contents are identical" ? "Contents are identical"
: QLocale(QLocale::English).toString(count) + (count == 1 ? " difference" : " differences") : QLocale(QLocale::English).toString(diffCount) + (diffCount == 1 ? " difference" : " differences")
); );
} }