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

QFileDialog::DontConfirmOverwrite option does not work when OS X App is sandboxed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • 5.15.9, 6.0.1, 6.1.0 Alpha
    • 5.3.0, 5.12.5
    • QPA
    • None
    • OS X 10.9.3
    • macOS
    • 9cd3ff2bdea0d5a009a8284288bbbdaaaec817be (qt/qtbase/dev) 85fd5b70d6af42e5db14a17a21f56770b3f448b7 (qt/qtbase/6.0) b64e9fc21fca02e929d98568c1529f0fe3214842 (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      A "save as" QFileDialog with option QFileDialog::DontConfirmOverwrite set to true displays the overwrite query when App is sandboxed.
      If the App is not sandboxed it work like expected.

      QFileDialog fd( this, tr("Save as"), file_name, "(*.txt)" );
      fd.setAcceptMode( QFileDialog::AcceptSave );
      fd.setFileMode( QFileDialog::AnyFile );
      fd.setViewMode( QFileDialog::List );
      fd.setOption( QFileDialog::DontConfirmOverwrite, true );
      int rc = fd.exec();

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            axels Axel Schmidt
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews