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

[macOS] (File|Folder)Dialog.currentFolder holds stale data

    XMLWordPrintable

Details

    • macOS
    • a81395f2c (dev), 4075ffa49 (6.7), 9a3800173 (6.6), 45dd975f6 (tqtc/lts-6.5), 8df8ea3a2 (tqtc/lts-6.2)
    • G&UI Finishing 2023

    Description

      Code

      import QtQuick.Controls.Basic
      import QtQuick.Dialogs
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          Button {
              text: "Open dialog"
              onClicked: dlg.open()
          }
      
          FileDialog { // or FolderDialog
              id: dlg
              onCurrentFolderChanged: console.log("Current folder:", currentFolder)
          }
      }
      

       

      Steps to reproduce

      1. Run the code above
      2. Click the button
      3. Navigate into a few different folders

       

      Expected outcomes (Windows)

      • Step 2: As the dialog opens into the PWD, the console prints the path to the PWD
      • Step 3: As you navigate into a different folder, the console prints the new folder that you just opened

       

      Actual outcomes (macOS)

      • Step 2: As the dialog opens into the PWD, the console doesn't print any folder
      • Step 3: As you navigate into a different folder, the console prints the previous folder that you opened (and the first message prints an empty string instead of the initial folder)
      • When the dialog first opens and each time you change folders, the console prints a repeated warning:
      2023-11-23 14:44:42.560 appTest[6017:147181] +[CATransaction synchronize] called within transaction
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: