Commit 90cf6f66 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 44c20f21
......@@ -167,11 +167,12 @@ void RecipientLineNG::dataFromFields()
if (!mData) {
return;
}
const QString editStr(mEdit->text());
QString displayName, addrSpec, comment;
if (KEmailAddress::splitAddress(mEdit->text(), displayName, addrSpec, comment) == KEmailAddress::AddressOk) {
if (KEmailAddress::splitAddress(editStr, displayName, addrSpec, comment) == KEmailAddress::AddressOk) {
mData->setName(displayName);
}
mData->setEmail(mEdit->text());
mData->setEmail(editStr);
mData->setType(Recipient::idToType(mCombo->currentIndex()));
mModified = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment