Do not crash when partition has no mount points.
This commit is contained in:
parent
268a68a318
commit
6b4185cff1
|
@ -142,7 +142,7 @@ QString FileSystem::detectMountPoint(FileSystem* fs, const QString& partitionPat
|
||||||
|
|
||||||
mountPoints.append(possibleMountPoints(partitionPath));
|
mountPoints.append(possibleMountPoints(partitionPath));
|
||||||
|
|
||||||
return mountPoints.first();
|
return mountPoints.isEmpty() ? QString() : mountPoints.first();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileSystem::detectMountStatus(FileSystem* fs, const QString& partitionPath)
|
bool FileSystem::detectMountStatus(FileSystem* fs, const QString& partitionPath)
|
||||||
|
|
Loading…
Reference in New Issue