From b1a55edfcb8b1c4e7ec57dc72d6aa7f0fb57760d Mon Sep 17 00:00:00 2001 From: wy Date: Mon, 16 Jun 2025 08:44:01 +0800 Subject: [PATCH] fix #12642 - GUI: statistics is not correct --- gui/checkstatistics.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/checkstatistics.cpp b/gui/checkstatistics.cpp index 93ceb362f99..45f799f4c07 100644 --- a/gui/checkstatistics.cpp +++ b/gui/checkstatistics.cpp @@ -30,10 +30,7 @@ CheckStatistics::CheckStatistics(QObject *parent) static void addItem(QMap &m, const QString &key) { - if (m.contains(key)) - m[key]++; - else - m[key] = 0; + m[key]++; } void CheckStatistics::addItem(const QString &tool, ShowTypes::ShowType type)