summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r--src/plugins/platforms/cocoa/qcocoamessagedialog.mm10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoamessagedialog.mm b/src/plugins/platforms/cocoa/qcocoamessagedialog.mm
index 23620a4bd7..cc1e8a98f2 100644
--- a/src/plugins/platforms/cocoa/qcocoamessagedialog.mm
+++ b/src/plugins/platforms/cocoa/qcocoamessagedialog.mm
@@ -189,16 +189,6 @@ bool QCocoaMessageDialog::show(Qt::WindowFlags windowFlags, Qt::WindowModality w
for (auto customButton : customButtons)
addButton(customButton.label, customButton.id, customButton.role);
-
- // QMessageDialog's logic for adding a fallback OK button if no other buttons
- // are added depends on QMessageBox::showEvent(), which is too late when
- // native dialogs are in use. To ensure there's always an OK button with a tag
- // we recognize we add it explicitly here as a fallback.
- if (!m_alert.buttons.count) {
- addButton(platformTheme->standardButtonText(StandardButton::Ok),
- StandardButton::Ok, ButtonRole::AcceptRole);
- }
-
if (auto checkBoxLabel = options()->checkBoxLabel(); !checkBoxLabel.isNull()) {
checkBoxLabel = QPlatformTheme::removeMnemonics(checkBoxLabel);
m_alert.suppressionButton.title = checkBoxLabel.toNSString();