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.
This commit is contained in:
parent
002c4612e3
commit
b2653c45c8
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue