From 6394d0e8387033a547d85e47b9754c0cf582a215 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 14 Jan 2015 13:59:34 +0100 Subject: [PATCH] Mail Preferences: use correct message constant Would crash the SMTP add-on as the message sent would end up trying to toggle a non-existing checkbox. --- src/kits/mail/ProtocolConfigView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/mail/ProtocolConfigView.cpp b/src/kits/mail/ProtocolConfigView.cpp index 36cb5d1286..6b0d0fc182 100644 --- a/src/kits/mail/ProtocolConfigView.cpp +++ b/src/kits/mail/ProtocolConfigView.cpp @@ -249,7 +249,7 @@ MailProtocolConfigView::AddAuthMethod(const char* label, bool needUserPassword) if (fAuthenticationField != NULL) { fAuthenticationField->Menu()->AddItem(new BMenuItem(label, new BMessage(needUserPassword - ? kMsgLeaveOnServer : kMsgNoPassword))); + ? kMsgNeedPassword : kMsgNoPassword))); if (fAuthenticationField->Menu()->FindMarked() == NULL) { BMenuItem* item = fAuthenticationField->Menu()->ItemAt(0);