platforms/drm: Fix outputDisabled signal

The outputDisabled() signal must be emitted **after** removing the
output from a list of enabled outputs.
This commit is contained in:
Vlad Zahorodnii 2021-08-31 08:36:28 +03:00
parent b0c26cc424
commit d70cfadf96

View file

@ -350,8 +350,8 @@ void DrmBackend::removeOutput(DrmAbstractOutput *o)
m_placeHolderOutput->renderLoop()->inhibit();
}
if (m_enabledOutputs.contains(o)) {
Q_EMIT outputDisabled(o);
m_enabledOutputs.removeOne(o);
Q_EMIT outputDisabled(o);
}
m_outputs.removeOne(o);
Q_EMIT outputRemoved(o);