Don't call output displays while closing a capture

This commit is contained in:
baldurk
2021-05-27 14:16:23 +01:00
parent 0e7ee12030
commit c41a6b3740
+2 -2
View File
@@ -155,11 +155,11 @@ void CustomPaintWidget::changeEvent(QEvent *event)
void CustomPaintWidget::renderInternal(QPaintEvent *e)
{
if(m_Ctx && m_Output)
if(m_Ctx && m_Output && m_Ctx->IsCaptureLoaded())
{
QPointer<CustomPaintWidget> me(this);
m_Ctx->Replay().AsyncInvoke(m_Tag, [me](IReplayController *r) {
if(me && me->m_Output)
if(me && me->m_Output && me->m_Ctx->IsCaptureLoaded())
me->m_Output->Display();
});
}