[LyX/2.4.x] Amend fd78a25a7c0b307

Juergen Spitzmueller spitz at lyx.org
Wed Jul 3 07:56:50 UTC 2024


commit e5030ad91542cea1de99037c12fc9c4b526d2936
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Jun 23 18:52:07 2024 +0200

    Amend fd78a25a7c0b307
    
    This way, it is a bit more plausible what we're doing
    
    (cherry picked from commit c394a1ccf9eab08221efc45f5d4ca26bbd963968)
---
 src/frontends/qt/GuiWorkArea.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index bce62416cc..8690b6f4f0 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -1950,14 +1950,13 @@ void TabWorkArea::on_currentTabChanged(int i)
 	if (i == -1)
 		return;
 	GuiWorkArea * wa = workArea(i);
-	// is it really a different work area?
-	bool real_change = wa == currentWorkArea();
 	LASSERT(wa, return);
 	wa->setUpdatesEnabled(true);
 	wa->scheduleRedraw(true);
 	wa->setFocus();
-	///
-	if (real_change)
+	// if the work area did change,
+	// inform the view and dialogs
+	if (wa == currentWorkArea())
 		currentWorkAreaChanged(wa);
 
 	LYXERR(Debug::GUI, "currentTabChanged " << i


More information about the lyx-cvs mailing list