On Wed, Nov 03, 2021 at 08:28:59AM +0100, Jürgen Spitzmüller wrote: > > Maybe this code (TocWidget::updateView()) is to blame? > > > > if (!gui_view_.documentBufferView()) { > > > > tocTV->setModel(nullptr); > > > > depthSL->setMaximum(0); > > > > depthSL->setValue(0); > > > > setEnabled(false); > > > > return; > > > > } > > > > > Commenting this out (except for the return) at least cures the crash. Why > do we need to reset the model in this case?
I can't reproduce this and do get the crash even when commenting the block statements except return. Also I checked that gui_view_ is correctly different when calling for the new window so I would have hard time to understand what cancels toc_ content. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel