Delete emote popup when it is closed.

This commit is contained in:
fourtf
2019-08-13 16:39:22 +02:00
parent 18f3a816ed
commit 7bf5a79f8a
6 changed files with 83 additions and 5 deletions
+3 -1
View File
@@ -153,7 +153,9 @@ void SplitInput::openEmotePopup()
{
if (!this->emotePopup_)
{
this->emotePopup_ = std::make_unique<EmotePopup>();
this->emotePopup_ = new EmotePopup(this);
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
this->emotePopup_->linkClicked.connect([this](const Link &link) {
if (link.type == Link::InsertText)
{