Commit b34d13cb authored by Nate Graham's avatar Nate Graham 🔩

Use the new `drive-harddisk-root` icon for the root volume

Use the new `drive-harddisk-root` icon to mark the root volume. This makes it obvious which disk corresponds to `/` when there are multiple disks, and allows us to remove the {nav root} entry from the top section of the {nav Places} panel (D15739)

Depends on D16633

Test Plan:


Reviewers: romangg, #vdg, #dolphin, #frameworks, bruns, abetts

Reviewed By: #vdg, bruns, abetts

Subscribers: abetts, kde-frameworks-devel

Tags: #frameworks

Maniphest Tasks: T8349

Differential Revision:
parent 3ac52c29
......@@ -614,6 +614,11 @@ QString Device::icon() const
if (!iconName.isEmpty()) {
return iconName;
} else if (queryDeviceInterface(Solid::DeviceInterface::StorageAccess)) {
const UDisks2::StorageAccess accessIface(const_cast<Device *>(this));
if (accessIface.filePath() == QLatin1String("/")) {
return QStringLiteral("drive-harddisk-root");
} else if (isLoop()) {
const QString backingFile = prop("BackingFile").toString();
if (!backingFile.isEmpty()) {
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