Do not crash when partition has no mount points.

This commit is contained in:
Andrius Štikonas 2017-09-13 23:28:37 +01:00
parent 268a68a318
commit 6b4185cff1
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ QString FileSystem::detectMountPoint(FileSystem* fs, const QString& partitionPat
mountPoints.append(possibleMountPoints(partitionPath));
return mountPoints.first();
return mountPoints.isEmpty() ? QString() : mountPoints.first();
}
bool FileSystem::detectMountStatus(FileSystem* fs, const QString& partitionPath)