revert first patch http://www.lyx.org/trac/changeset/15597
* frontends/qt4/GuiView.C:
don't 'break' the toolbar because it doesn't work if
the toolbar will be hidden
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15636
a592a061-630c-0410-9148-
cb99ea01b6c8
ToolbarPtr tb_ptr = owner_.makeToolbar(tbb);
toolbars_[tbb.name] = tb_ptr;
+ if (tbb.flags & ToolbarBackend::ON)
+ tb_ptr->show(false);
+ else
+ tb_ptr->hide(false);
+
if (tb_ptr->layout())
layout_ = tb_ptr->layout();
}
}
if (tbb.flags & ToolbarBackend::BOTTOM) {
addToolBar(Qt::BottomToolBarArea, Tb);
+ /*
+ // Qt bug. Doesn't work because the
+ // toolbar will evtl. be hidden.
if (lastTb)
insertToolBarBreak(lastTb);
lastTb = Tb;
+ */
}
if (tbb.flags & ToolbarBackend::LEFT) {
addToolBar(Qt::LeftToolBarArea, Tb);