Commit b2653c45 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

platforms/drm: drop connector name from modelName with serial

The connector name is not relevant to applications or
users - expectation is that the same physical monitor always gets the
same name, regardless of how it's connected. If no serial is available,
fall back to the old scheme to prevent multiple connected outputs from
having the same name.
parent 002c4612
......@@ -122,7 +122,11 @@ QString DrmConnector::connectorName() const
QString DrmConnector::modelName() const
return connectorName() + m_edid.nameString();
if (m_edid.serialNumber().isEmpty()) {
return connectorName() + QLatin1Char('-') + m_edid.nameString();
} else {
return m_edid.nameString();
bool DrmConnector::isInternal() const
Supports Markdown
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