[LyX/master] Revert "Do not update statistics when not requested."

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Oct 21 13:47:17 UTC 2024


commit ac018b03047f06d29a713ee40c13fb5d1e9def55
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Oct 21 15:35:31 2024 +0200

    Revert "Do not update statistics when not requested."
    
    Actually, this test was already present.
    
    This reverts commit c50debaffcccb4481bf440df1ab4b2d11d28a048.
---
 src/frontends/qt/GuiView.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 99278bcbd4..6969cb1832 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -1481,8 +1481,7 @@ void GuiView::showStats()
 	// Don't attempt to calculate stats if
 	// the buffer is busy as this might crash (#12935)
 	Statistics & statistics = buf->statistics();
-	if (!busy() && !bv->busy()
-	     && (word_count_enabled_ || char_count_enabled_ || char_nb_count_enabled_))
+	if (!busy() && !bv->busy())
 		statistics.update(cur);
 
 	QStringList stats;


More information about the lyx-cvs mailing list