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

QML FileDialog holds directories.

    XMLWordPrintable

Details

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

    Description

      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());
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change