Commit 8dedbcdf authored by Stefan Brüns's avatar Stefan Brüns

Make automounting work even if StorageAccess is ignored

Summary:
There is no reason to make mounting dependent on the StorageAccess.ignore
flag, which just serves a a hint for visualization.

This change sneaked in when porting to KF5, no justification given.

BUG: 389479

Reviewers: ngraham, #plasma, broulik

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12050
parent 4a2b271f
...@@ -67,9 +67,6 @@ void DeviceAutomounter::automountDevice(Solid::Device &dev, AutomounterSettings: ...@@ -67,9 +67,6 @@ void DeviceAutomounter::automountDevice(Solid::Device &dev, AutomounterSettings:
{ {
if (dev.is<Solid::StorageVolume>() && dev.is<Solid::StorageAccess>()) { if (dev.is<Solid::StorageVolume>() && dev.is<Solid::StorageAccess>()) {
Solid::StorageAccess *sa = dev.as<Solid::StorageAccess>(); Solid::StorageAccess *sa = dev.as<Solid::StorageAccess>();
if (sa->isIgnored()) {
return;
}
AutomounterSettings::setDeviceLastSeenMounted(dev.udi(), sa->isAccessible()); AutomounterSettings::setDeviceLastSeenMounted(dev.udi(), sa->isAccessible());
AutomounterSettings::saveDevice(dev); AutomounterSettings::saveDevice(dev);
......
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