mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: remove redundant check in StorageAccess::filePath()
the device links (DEVLINKS property) includes the label link Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c882cf5442
commit
38bdfc6e82
1 changed files with 1 additions and 3 deletions
|
@ -65,10 +65,8 @@ QString StorageAccess::filePath() const
|
|||
const KMountPoint::List mountpoints = KMountPoint::currentMountPoints();
|
||||
|
||||
const QString devname(m_device->deviceProperty("DEVNAME"));
|
||||
const QString devlabel(m_device->deviceProperty("ID_FS_LABEL"));
|
||||
foreach (const KMountPoint::Ptr mountpoint, mountpoints) {
|
||||
if (mountpoint->mountedFrom() == devname || mountpoint->realDeviceName() == devname
|
||||
|| mountpoint->mountedFrom() == devlabel) {
|
||||
if (mountpoint->mountedFrom() == devname || mountpoint->realDeviceName() == devname) {
|
||||
return mountpoint->mountPoint();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue