Disable placeholder output when removing it

The current assumption is that Output::enabledChanged(false) always comes
before Output::destroyed.
This commit is contained in:
Vlad Zahorodnii 2024-03-21 12:19:20 +02:00
parent 4f322e24d3
commit 489cd31ee9

View file

@ -32,6 +32,9 @@ PlaceholderOutput::PlaceholderOutput(const QSize &size, qreal scale)
PlaceholderOutput::~PlaceholderOutput() PlaceholderOutput::~PlaceholderOutput()
{ {
State state = m_state;
state.enabled = false;
setState(state);
} }
RenderLoop *PlaceholderOutput::renderLoop() const RenderLoop *PlaceholderOutput::renderLoop() const