Commit 829a64aa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use truncate directly

parent 3afb5fce
......@@ -652,7 +652,7 @@ void AddresseeLineEdit::loadContacts()
name = KEmailAddress::quoteNameIfNecessary(name);
if ((name[0] == QLatin1Char('"')) && (name[name.length() - 1] == QLatin1Char('"'))) {
name.remove(0, 1);
name.truncate(name.length() - 1);
name.chop(1);
}
addr.setNameFromString(name);
addr.insertEmail(email, true);
......
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