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

OS X QFileDialog::getSaveFileName doesn't allow selection of file with extensions like .tar.gz

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.5, 5.3.0 Beta1, 5.12, 5.15
    • Fix Version/s: 5.3.1, 5.4.0
    • Component/s: GUI: Workspace
    • Labels:
      None
    • Environment:
      OS X 10.8.5, 10.9.2
    • Platform/s:
      macOS
    • Commits:
      5d9d3ff3269f92366b022e17485fa4dd98f5ba95 (qt/qtbase/5.15)

      Description

      When using QFileDialog::getSaveFileName with a filter looking like:

      "Archives (*.tar.gz *.zip")"

      The native dialog doesn't allow to select the tar.gz files. AFAIK it's a limitation of NSSavePanel that doesn't support double extensions.

      Should we workaround that and build the list using only the last extension so in this case "gz" and "zip" and document the behavior ?
      Or just update the documentation and explain the limitation on OS X ?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              sgaist Samuel Gaist
              Votes:
              10 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes