Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.0 RC
-
None
-
acf43c17b647cdbfc3186bb8bf7e183df67a090b
Description
QFileSystemModel::fileInfo() returns incorrect QFileInfo for the root path after first setting the root path to some directory and then setting it to the parent directory:
QFileSystemModel model; model.setRootPath("/usr/bin"); QModelIndex idx = model.setRootPath("/usr"); qDebug() << model.fileInfo(idx).absoluteFilePath(); // prints "/usr/bin" but must print "/usr"
Attachments
Issue Links
- relates to
-
QTBUG-52561 [REG 5.5->5.6] The renamed item's information is not available in handler of QFileSystemModel::fileRenamed()
- Closed