diff options
Diffstat (limited to 'src/imports/folderlistmodel/fileinfothread.cpp')
-rw-r--r-- | src/imports/folderlistmodel/fileinfothread.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imports/folderlistmodel/fileinfothread.cpp b/src/imports/folderlistmodel/fileinfothread.cpp index f7587c25f5..2d53b211ad 100644 --- a/src/imports/folderlistmodel/fileinfothread.cpp +++ b/src/imports/folderlistmodel/fileinfothread.cpp @@ -92,7 +92,8 @@ void FileInfoThread::removePath(const QString &path) { QMutexLocker locker(&mutex); #ifndef QT_NO_FILESYSTEMWATCHER - watcher->removePath(path); + if (!path.startsWith(QLatin1Char(':'))) + watcher->removePath(path); #endif currentPath.clear(); } @@ -103,7 +104,8 @@ void FileInfoThread::setPath(const QString &path) QMutexLocker locker(&mutex); #ifndef QT_NO_FILESYSTEMWATCHER - watcher->addPath(path); + if (!path.startsWith(QLatin1Char(':'))) + watcher->addPath(path); #endif currentPath = path; needUpdate = true; |