forked from qt-creator/qt-creator
Utils: Only existing path to FSEngine::deviceRoots
Change-Id: I7b5068efdbf83490d729ebe3165729ad9f92d790 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -36,7 +36,8 @@ FilePaths FSEngine::registeredDeviceRoots()
|
|||||||
|
|
||||||
void FSEngine::addDevice(const FilePath &deviceRoot)
|
void FSEngine::addDevice(const FilePath &deviceRoot)
|
||||||
{
|
{
|
||||||
deviceRoots().append(deviceRoot);
|
if (deviceRoot.exists())
|
||||||
|
deviceRoots().append(deviceRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FSEngine::removeDevice(const FilePath &deviceRoot)
|
void FSEngine::removeDevice(const FilePath &deviceRoot)
|
||||||
|
Reference in New Issue
Block a user