[LyX/master] Fixup 1d1f95d2e: do update suppression with a finer grain

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Sep 2 12:30:46 UTC 2026


commit 069711cff5287cd54a3edeb8d507101b37e341f5
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Sep 2 11:31:44 2026 +0200

    Fixup 1d1f95d2e: do update suppression with a finer grain
    
    The suppression of updates related to creating a new tab was too broad
    and caused unwanted side effects.
    
    Thanks to Claude for the analysis.
    
    Fixes #13091.
---
 src/frontends/qt/GuiWorkArea.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index d3f23901a2..1eb3fcdcbc 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -377,7 +377,7 @@ void GuiWorkArea::toggleCaret()
 
 void GuiWorkArea::scheduleRedraw(bool update_metrics)
 {
-	if (!isVisible() || view().busy())
+	if (!isVisible())
 		// No need to redraw in this case.
 		return;
 
@@ -1885,7 +1885,8 @@ void TabWorkArea::on_currentTabChanged(int i)
 	GuiWorkArea * wa = workArea(i);
 	LASSERT(wa, return);
 	wa->setUpdatesEnabled(true);
-	wa->scheduleRedraw(true);
+	if (!wa->view().busy())
+		wa->scheduleRedraw(true);
 	wa->setFocus();
 	// if the work area did change,
 	// inform the view and dialogs


More information about the lyx-cvs mailing list