fixed a memory leak

This commit is contained in:
fourtf 2020-09-26 18:07:13 +02:00
parent f7f858a4fc
commit 53b18d03c6

View file

@ -118,6 +118,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically)
if (closeAutomatically)
this->setActionOnFocusLoss(BaseWindow::Delete);
else
this->setAttribute(Qt::WA_DeleteOnClose);
// Close the popup when Escape is pressed
createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });