From d2009428b65047ec26492f0ff2a1c21f39647a02 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 14 Mar 2024 01:00:31 +0100 Subject: workaround broken platform dialogs on macos See https://bugreports.qt.io/browse/QTBUG-102078 --- resources/qml/dialogs/RoomSettingsDialog.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'resources/qml/dialogs/RoomSettingsDialog.qml') diff --git a/resources/qml/dialogs/RoomSettingsDialog.qml b/resources/qml/dialogs/RoomSettingsDialog.qml index 8e127567..b435e55b 100644 --- a/resources/qml/dialogs/RoomSettingsDialog.qml +++ b/resources/qml/dialogs/RoomSettingsDialog.qml @@ -554,13 +554,16 @@ ApplicationWindow { text: qsTr(`Encryption is currently experimental and things might break unexpectedly.
Please take note that it can't be disabled afterwards.`) modality: Qt.NonModal - onAccepted: { + // Broken on macos, see https://bugreports.qt.io/browse/QTBUG-102078 + //onAccepted: { + onOkClicked: { if (roomSettings.isEncryptionEnabled) return ; roomSettings.enableEncryption(); } - onRejected: { + //onRejected: { + onCancelClicked: { encryptionToggle.checked = false; } buttons: Platform.MessageDialog.Ok | Platform.MessageDialog.Cancel -- cgit 1.5.1