Utils: Only existing path to FSEngine::deviceRoots

Change-Id: I7b5068efdbf83490d729ebe3165729ad9f92d790
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-12-01 10:24:07 +01:00
parent d01c22b805
commit 067d02f82d

View File

@@ -36,7 +36,8 @@ FilePaths FSEngine::registeredDeviceRoots()
void FSEngine::addDevice(const FilePath &deviceRoot)
{
deviceRoots().append(deviceRoot);
if (deviceRoot.exists())
deviceRoots().append(deviceRoot);
}
void FSEngine::removeDevice(const FilePath &deviceRoot)