Skip to content

Commit c72b95f

Browse files
JCira-OSUpull[bot]
authored andcommitted
Fix health check reused password count tooltip
1 parent 4cd201b commit c72b95f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/PasswordHealth.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ QSharedPointer<PasswordHealth> HealthChecker::evaluate(const Entry* entry) const
152152
health->addScoreReason(QObject::tr("Password is used %1 time(s)", "", count).arg(QString::number(count)));
153153
// Add the first 20 uses of the password to prevent the details display from growing too large
154154
for (int i = 0; i < used.size(); ++i) {
155-
health->addScoreDetails(used[i]);
156-
if (i == 19) {
155+
if (i == 20) {
157156
health->addScoreDetails("");
158157
break;
159158
}
159+
health->addScoreDetails(used[i]);
160160
}
161161

162162
// Don't allow re-used passwords to be considered "good"

0 commit comments

Comments
 (0)