| 395 | } |
| 396 | |
| 397 | void AbstractFileManagerPluginPrivate::continueWatcher(ProjectFolderItem* folder) |
| 398 | { |
| 399 | if ( !folder->path().isLocalFile() ) { |
| 400 | return; |
| 401 | } |
| 402 | auto watcher = m_watchers.value(folder->project(), nullptr); |
| 403 | Q_ASSERT(watcher); |
| 404 | const QString path = folder->path().toLocalFile(); |
| 405 | if (!watcher->restartDirScan(path)) { |
| 406 | // path wasn't being watched yet - can we be 100% certain of that will never happen? |
| 407 | qCWarning(FILEMANAGER) << "Folder" << path << "in project" << folder->project()->name() << "wasn't yet being watched"; |
| 408 | watcher->addDir(path); |
| 409 | } |
| 410 | const int idx = m_stoppedFolders.indexOf(path); |
| 411 | if (idx != -1) { |
| 412 | m_stoppedFolders.remove(idx); |
| 413 | } |
| 414 | } |
| 415 | //END Private |
| 416 | |
| 417 | //BEGIN Plugin |
no test coverage detected