Disable placeholder output when removing it
The current assumption is that Output::enabledChanged(false) always comes before Output::destroyed.
This commit is contained in:
parent
4f322e24d3
commit
489cd31ee9
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue