commit 0515bfa989474c6dc46256b1bea52cff7f330336
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Aug 18 19:08:03 2022 +0200
Update stats display if a stat is (un)selected
---
src/frontends/qt/GuiView.cpp | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index edcc999..b87b494 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -5028,13 +5028,19 @@ bool GuiView::lfunUiToggle(string const & ui_component)
zoom_slider_->setVisible(!zoom_slider_->isVisible());
zoom_in_->setVisible(zoom_slider_->isVisible());
zoom_out_->setVisible(zoom_slider_->isVisible());
- } else if (ui_component == "statistics-w")
+ } else if (ui_component == "statistics-w") {
word_count_enabled_ = !word_count_enabled_;
- else if (ui_component == "statistics-cb")
+ if (statsEnabled())
+ showStats();
+ } else if (ui_component == "statistics-cb") {
char_count_enabled_ = !char_count_enabled_;
- else if (ui_component == "statistics-c")
+ if (statsEnabled())
+ showStats();
+ } else if (ui_component == "statistics-c") {
char_nb_count_enabled_ = !char_nb_count_enabled_;
- else if (ui_component == "frame") {
+ if (statsEnabled())
+ showStats();
+ } else if (ui_component == "frame") {
int const l = contentsMargins().left();
//are the frames in default state?
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs