Commit b25d7c19 authored by Andrius Štikonas's avatar Andrius Štikonas

Make Partition Manager device selector more user friendly:

Show Device name – Capacity (Device node)

BUG:259679
parent 227c77e8
......@@ -112,5 +112,8 @@ bool Device::operator!=(const Device& other) const
QString Device::prettyName() const
{
return QStringLiteral("%1 (%2, %3)").arg(deviceNode()).arg(name()).arg(Capacity::formatByteSize(this->capacity()));
if ( name().isEmpty() )
return deviceNode();
else
return i18nc("Device name – Capacity (device node)", "%1 – %2 (%3)", name(), Capacity::formatByteSize(capacity()), deviceNode());
}
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