mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed a memory leak
This commit is contained in:
parent
f7f858a4fc
commit
53b18d03c6
|
@ -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(); });
|
||||
|
|
Loading…
Reference in a new issue