[LyX/master] Fix bug #11796.

Richard Kimberly Heck rikiheck at lyx.org
Sat Jun 1 16:45:13 UTC 2024


commit 42a8463aab6100e8209caa8cd137d3c500623729
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Jun 1 12:43:56 2024 -0400

    Fix bug #11796.
    
    Toolbars are now locked by default. Unlocked state should be saved
    by Qt as a session variable.
    
    Patch from Daniel.
---
 src/frontends/qt/GuiView.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index f8be587106..7be7626b8b 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -567,7 +567,7 @@ GuiView::GuiView(int id)
 	: d(*new GuiViewPrivate(this)), id_(id), closing_(false), busy_(0),
 	  command_execute_(false), minibuffer_focus_(false), word_count_enabled_(true),
 	  char_count_enabled_(true),  char_nb_count_enabled_(false),
-	  toolbarsMovable_(true), devel_mode_(false)
+	  toolbarsMovable_(false), devel_mode_(false)
 {
 	connect(this, SIGNAL(bufferViewChanged()),
 	        this, SLOT(onBufferViewChanged()));
@@ -1200,7 +1200,7 @@ void GuiView::initToolbar(string const & name)
 	if (visibility & Toolbars::ON)
 		tb->setVisible(true);
 
-	tb->setMovable(true);
+	tb->setMovable(false);
 }
 
 


More information about the lyx-cvs mailing list