Fix empty path on file watcher addPath
This commit is contained in:
parent
c0c0502637
commit
e71c377e40
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue