diff --git a/src/backends/x11/standalone/x11_standalone_platform.cpp b/src/backends/x11/standalone/x11_standalone_platform.cpp index 0b718de77c..1ad9040415 100644 --- a/src/backends/x11/standalone/x11_standalone_platform.cpp +++ b/src/backends/x11/standalone/x11_standalone_platform.cpp @@ -566,8 +566,8 @@ void X11StandalonePlatform::doUpdateOutputs() }; bool ok; - if (auto data = edids[i].toByteArray(&ok); ok && !data.isEmpty()) { - if (auto edid = Edid(data, edids[i].data()->num_items); edid.isValid()) { + if (auto data = edids[j].toByteArray(&ok); ok && !data.isEmpty()) { + if (auto edid = Edid(data, edids[j].data()->num_items); edid.isValid()) { information.manufacturer = edid.manufacturerString(); information.model = edid.monitorName(); information.serialNumber = edid.serialNumber();