Am Wed, 3 Nov 2021 13:41:37 +0100 schrieb Pavel Sanda <sa...@lyx.org>:
> 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 Not getting the crash here with latest master. Kornel
pgpduXzpGfDoL.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel