Commit a46bff29 authored by Méven Car's avatar Méven Car

Avoid attempting to auto-mount a device when it is alread mounted

Summary:
BUG: 409915
FIXED-IN: 5.17

Reviewers: #plasma, ngraham, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D22552
parent 0039ff4a
......@@ -96,7 +96,7 @@ void DeviceAutomounter::automountDevice(Solid::Device &dev, AutomounterSettings:
if (AutomounterSettings::shouldAutomountDevice(dev.udi(), type)) {
Solid::StorageVolume *sv = dev.as<Solid::StorageVolume>();
if (!sv->isIgnored()) {
if (!sa->isAccessible() && !sv->isIgnored()) {
sa->setup();
}
}
......
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