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

Minor optimization

parent 44c20f21
...@@ -167,11 +167,12 @@ void RecipientLineNG::dataFromFields() ...@@ -167,11 +167,12 @@ void RecipientLineNG::dataFromFields()
if (!mData) { if (!mData) {
return; return;
} }
const QString editStr(mEdit->text());
QString displayName, addrSpec, comment; 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->setName(displayName);
} }
mData->setEmail(mEdit->text()); mData->setEmail(editStr);
mData->setType(Recipient::idToType(mCombo->currentIndex())); mData->setType(Recipient::idToType(mCombo->currentIndex()));
mModified = false; 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