From 4e32f24e4bf04fdd1a5ee36ee4b63bca1a0bdc71 Mon Sep 17 00:00:00 2001 From: Michael Haeckel Date: Thu, 8 Mar 2001 17:06:45 +0000 Subject: [PATCH] Don't crash when locale is set to Turkish and the user tries to send a mail. The message id is not that important, since the SMTP server usually also adds one. --- kmmessage.cpp 2001/02/24 15:35:55 1.174 +++ kmmessage.cpp 2001/03/08 17:04:22 @@ -990,7 +990,8 @@ void KMMessage::setAutomaticFields(bool { DwHeaders& header = mMsg->Headers(); header.MimeVersion().FromString("1.0"); - header.MessageId().CreateDefault(); + if (!QString(QTextCodec::locale()).contains("tr_TR")) // crashes otherwise + header.MessageId().CreateDefault(); if (aIsMulti || numBodyParts() > 1) { svn path=/trunk/kdenetwork/kmail/; revision=85958 --- kmmessage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmmessage.cpp b/kmmessage.cpp index 08decb574..61e78e4e8 100644 --- a/kmmessage.cpp +++ b/kmmessage.cpp @@ -990,7 +990,8 @@ void KMMessage::setAutomaticFields(bool aIsMulti) { DwHeaders& header = mMsg->Headers(); header.MimeVersion().FromString("1.0"); - header.MessageId().CreateDefault(); + if (!QString(QTextCodec::locale()).contains("tr_TR")) // crashes otherwise + header.MessageId().CreateDefault(); if (aIsMulti || numBodyParts() > 1) {