Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3.0 Feature Freeze
-
None
-
0cda986eb (dev), af9b70c5e (6.7), 1dc98ca98 (6.6)
Description
QFileSystemModel relies on QFileInfoGatherer for file system watching.
QFileInfoGatherer::setWatching(bool v) can only disable watching, not enable it. There is just no code to do it in this member function:
void QFileInfoGatherer::setWatching(bool v) { #if QT_CONFIG(filesystemwatcher) QMutexLocker locker(&mutex); if (v != m_watching) { if (!v) { delete m_watcher; m_watcher = nullptr; } m_watching = v; } #else Q_UNUSED(v); #endif }
A unit test showing this problem is linked to this bug.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-99750 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
389633,1 | Add unit test to install file system watcher in QFileSystemModel | dev | qt/qtbase | Status: NEW | -1 | 0 |
528441,2 | QFileInfoGatherer: add some API docs | dev | qt/qtbase | Status: MERGED | +2 | 0 |
528943,2 | QFileInfoGatherer: add some API docs | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
530896,2 | QFileInfoGatherer: add some API docs | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |