Toolbars are now locked by default. Unlocked state should be saved
by Qt as a session variable.

Patch from Daniel.

(cherry picked from commit 42a8463aab)
This commit is contained in:
Richard Kimberly Heck 2024-06-01 12:43:56 -04:00
parent 26ab818033
commit d780091990

View File

@ -567,7 +567,7 @@ GuiView::GuiView(int id)
: d(*new GuiViewPrivate(this)), id_(id), closing_(false), busy_(0), : d(*new GuiViewPrivate(this)), id_(id), closing_(false), busy_(0),
command_execute_(false), minibuffer_focus_(false), word_count_enabled_(true), command_execute_(false), minibuffer_focus_(false), word_count_enabled_(true),
char_count_enabled_(true), char_nb_count_enabled_(false), char_count_enabled_(true), char_nb_count_enabled_(false),
toolbarsMovable_(true), devel_mode_(false) toolbarsMovable_(false), devel_mode_(false)
{ {
connect(this, SIGNAL(bufferViewChanged()), connect(this, SIGNAL(bufferViewChanged()),
this, SLOT(onBufferViewChanged())); this, SLOT(onBufferViewChanged()));
@ -1200,7 +1200,7 @@ void GuiView::initToolbar(string const & name)
if (visibility & Toolbars::ON) if (visibility & Toolbars::ON)
tb->setVisible(true); tb->setVisible(true);
tb->setMovable(true); tb->setMovable(false);
} }