Commit 5e723248 authored by Laurent Montel's avatar Laurent Montel 😁

Modify first element

parent cc0c669b
...@@ -949,7 +949,8 @@ void Addressee::setTitle(const QString &title) ...@@ -949,7 +949,8 @@ void Addressee::setTitle(const QString &title)
{ {
Title t(title); Title t(title);
if (!d->mTitleExtraList.isEmpty()) { if (!d->mTitleExtraList.isEmpty()) {
d->mTitleExtraList.takeFirst(); t = d->mTitleExtraList.takeFirst();
t.setTitle(title);
d->mTitleExtraList.prepend(t); d->mTitleExtraList.prepend(t);
d->mEmpty = false; d->mEmpty = false;
} else { } else {
......
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