From 489cd31ee93962a6abbb0d35e0e8d3e95b527465 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 21 Mar 2024 12:19:20 +0200 Subject: [PATCH] Disable placeholder output when removing it The current assumption is that Output::enabledChanged(false) always comes before Output::destroyed. --- src/placeholderoutput.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/placeholderoutput.cpp b/src/placeholderoutput.cpp index 1ef1182e04..7fd2d92cd1 100644 --- a/src/placeholderoutput.cpp +++ b/src/placeholderoutput.cpp @@ -32,6 +32,9 @@ PlaceholderOutput::PlaceholderOutput(const QSize &size, qreal scale) PlaceholderOutput::~PlaceholderOutput() { + State state = m_state; + state.enabled = false; + setState(state); } RenderLoop *PlaceholderOutput::renderLoop() const