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.
This commit is contained in:
Adrien Destugues 2015-01-14 13:59:34 +01:00
parent 1736cb1d59
commit 6394d0e838

View File

@ -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);