-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.12
-
-
6d1769791 (dev), cffe6800d (6.4), 6d971d01b (6.5)
If any drive is added to QFileSystemWatcher and latter removePaths() is called to remove all directories, this returns false.
following tiny example shows this:
#include <QtCore/QCoreApplication> #include <QFileSystemWatcher> #include <QDebug> #include <QStringList> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QFileSystemWatcher* w = new QFileSystemWatcher; w->addPath("D:\\"); auto r = w->removePaths(w->directories()); qDebug()<<r;// This still prints D:\ //w->addPath("D:\\tmp"); // auto r = w->removePaths(w->directories());// This works //qDebug()<<r; // prints nothing return a.exec(); }
For Gerrit Dashboard: QTBUG-110986 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
458906,4 | QFileSystemWatcher/Win: remove the pre-QFileInfo path normalization | dev | qt/qtbase | Status: MERGED | +2 | 0 |
460434,2 | QFileSystemWatcher/Win: remove the pre-QFileInfo path normalization | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
460435,2 | QFileSystemWatcher/Win: remove the pre-QFileInfo path normalization | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
460436,1 | QFileSystemWatcher/Win: remove the pre-QFileInfo path normalization | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: ABANDONED | 0 | 0 |
460437,1 | QFileSystemWatcher/Win: remove the pre-QFileInfo path normalization | tqtc/esm-5.15 | qt/tqtc-qtbase | Status: ABANDONED | 0 | 0 |