fixed a memory leak
This commit is contained in:
@@ -118,6 +118,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically)
|
|||||||
|
|
||||||
if (closeAutomatically)
|
if (closeAutomatically)
|
||||||
this->setActionOnFocusLoss(BaseWindow::Delete);
|
this->setActionOnFocusLoss(BaseWindow::Delete);
|
||||||
|
else
|
||||||
|
this->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
// Close the popup when Escape is pressed
|
// Close the popup when Escape is pressed
|
||||||
createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });
|
createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });
|
||||||
|
|||||||
Reference in New Issue
Block a user