]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #11796.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 1 Jun 2024 16:43:56 +0000 (12:43 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 1 Jun 2024 16:45:19 +0000 (12:45 -0400)
Toolbars are now locked by default. Unlocked state should be saved
by Qt as a session variable.

Patch from Daniel.

(cherry picked from commit 42a8463aab6100e8209caa8cd137d3c500623729)

src/frontends/qt/GuiView.cpp

index a20edd1cfee7e8a56a4c1733054b786218cad7ec..fc71a00842c8adbc9a66ff30af758aaf510ed5b6 100644 (file)
@@ -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);
 }