Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
5.3.0, 5.12.5
-
None
-
OS X 10.9.3
-
-
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
For Gerrit Dashboard: QTBUG-39791 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
326595,11 | macOS: Mark QFileDialog::DontConfirmOverwrite as unsupported | dev | qt/qtbase | Status: MERGED | +2 | 0 |
326596,3 | macOS: Remove DontConfirmOverwrite workaround | dev | qt/qtbase | Status: MERGED | +2 | 0 |
330265,2 | macOS: Mark QFileDialog::DontConfirmOverwrite as unsupported | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
330349,2 | macOS: Mark QFileDialog::DontConfirmOverwrite as unsupported | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
330714,2 | macOS: Remove DontConfirmOverwrite workaround | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
330716,2 | macOS: Remove DontConfirmOverwrite workaround | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |