Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59279

QML FileDialog holds directories.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.8.0
    • Quick: Dialogs
    • None
    • Windows OS Family

      QQuickFolderListModel under Windows doesn't remove watchers on folder during changing path.
      Error occurred into:

      void QQuickFolderListModel::setFolder(const QUrl &folder)

      lines:

      if (!d->currentDir.isEmpty())
          d->fileInfoThread.removePath(d->currentDir.path());
      

      should replace(as example):

      if (!d->currentDir.isEmpty()) {
          if (d->currentDir.isLocalFile()) {
              d->fileInfoThread.removePath(d->currentDir.toLocalFile());
          } else {
              d->fileInfoThread.removePath(d->currentDir.path());
          }
      }
      

        For Gerrit Dashboard: QTBUG-59279
        # Subject Branch Project Status CR V

            srutledg Shawn Rutledge
            alexander.ch Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change