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

Windows: FileDialog of QtQuick.Dialogs 1 prevents rename of parent directory indefinitely

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      STR:
      1. qmlscene file-dialog-dir-handle.qml
      2. click "Open Dialogs' FileDialog"
      3. select file in grandchild directory (e.g. "foo/bar/baz.txt")
      4. try to rename the top directory in explorer (e.g. "foo" -> "foo_")

      Explorer complains that the folder is in use.
      "The action can't be completed because the folder or a file in it is open in another program"

      Destroying the FileDialog instance doesn't help.

      Apparently, Qt.labs.platform's FileDialog does not have this problem.

      I suspect that pure QML DefaultFileDialog instantiates FolderListModel even when
      native file dialog is in use, and it keeps directory handle for long? But it's just a guess.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            yunishih Yuya Nishihara
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes