Fix empty path on file watcher addPath

This commit is contained in:
manongjohn 2021-03-28 16:20:11 -04:00
parent c0c0502637
commit e71c377e40

View file

@ -65,6 +65,7 @@ void MyFileSystemWatcher::addPaths(const QStringList &paths, bool onlyNewPath) {
if (paths.isEmpty()) return;
for (int p = 0; p < paths.size(); p++) {
QString path = paths.at(p);
if (path.isEmpty() || path.isNull()) continue;
// if the path is not watched yet, try to start watching it
if (!m_watchedPath.contains(path)) {
// symlink path will not be watched