]> git.lyx.org Git - features.git/commitdiff
Initialize toolbarsMovable_
authorScott Kostyshak <skostysh@lyx.org>
Fri, 27 Apr 2018 21:41:26 +0000 (17:41 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 28 Apr 2018 03:31:09 +0000 (23:31 -0400)
Valgrind detected a conditional jump because this member was not
initialized.

(cherry picked from commit e49a10729e2b96202d0eaca1e63edc9212c7258c)

src/frontends/qt4/GuiView.cpp

index 0ffc4ac8a7532c3974391224f71b5083f4fae5e2..af594cba614b882ed0de52e740c384b2196606ae 100644 (file)
@@ -509,7 +509,8 @@ QSet<Buffer const *> GuiView::GuiViewPrivate::busyBuffers;
 
 GuiView::GuiView(int id)
        : d(*new GuiViewPrivate(this)), id_(id), closing_(false), busy_(0),
-         command_execute_(false), minibuffer_focus_(false), devel_mode_(false)
+         command_execute_(false), minibuffer_focus_(false), toolbarsMovable_(true),
+         devel_mode_(false)
 {
        connect(this, SIGNAL(bufferViewChanged()),
                this, SLOT(onBufferViewChanged()));