This commit is contained in:
Rasmus Karlsson
2018-09-30 16:55:41 +00:00
parent d79a8b81b1
commit a2fb4ca104
9 changed files with 31 additions and 31 deletions
+2 -4
View File
@@ -159,13 +159,11 @@ void TextElement::addToContainer(MessageLayoutContainer &container,
->setLink(this->getLink());
e->setTrailingSpace(trailingSpace);
// If URL link was changed,
// If URL link was changed,
// Should update it in MessageLayoutElement too!
if (this->getLink().type == Link::Url) {
this->linkChanged.connect(
[this, e]() {
e->setLink(this->getLink());
});
[this, e]() { e->setLink(this->getLink()); });
}
return e;
};