Revert "Do not update statistics when not requested."

Actually, this test was already present.

This reverts commit c50debaffc.
This commit is contained in:
Jean-Marc Lasgouttes 2024-10-21 15:35:31 +02:00
parent 4560cfd012
commit ac018b0304

View File

@ -1481,8 +1481,7 @@ void GuiView::showStats()
// Don't attempt to calculate stats if // Don't attempt to calculate stats if
// the buffer is busy as this might crash (#12935) // the buffer is busy as this might crash (#12935)
Statistics & statistics = buf->statistics(); Statistics & statistics = buf->statistics();
if (!busy() && !bv->busy() if (!busy() && !bv->busy())
&& (word_count_enabled_ || char_count_enabled_ || char_nb_count_enabled_))
statistics.update(cur); statistics.update(cur);
QStringList stats; QStringList stats;