Commit 1c61de19 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

autotests: Clean up the outputs list when client connection is closed

If the client connection has been closed, the Output::removed() signal
won't be emitted.
parent ed0b0ee9
......@@ -118,6 +118,9 @@ bool setupWaylandConnection(AdditionalWaylandInterfaces flags)
output->deleteLater();
s_waylandConnection.outputs.removeOne(output);
});
QObject::connect(output, &Output::destroyed, [=]() {
s_waylandConnection.outputs.removeOne(output);
});
});
QSignalSpy allAnnounced(registry, &Registry::interfacesAnnounced);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment