Skip to content

Clear previews when closing the document

During the close document process the document can be closed and the Preview widgets would remain stale attached to the flowbox until the new document cleared them out. Instead we clear them out explicitly.

We also check the async code, to make sure it's still valid. If the root drawing item is gone, then there's nothing to render.

Fixes #4120 (closed)

Merge request reports