Skip to content

Commit

Permalink
fixed a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
fourtf committed Sep 26, 2020
1 parent f7f858a commit 53b18d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets/dialogs/UserInfoPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); });
Expand Down

0 comments on commit 53b18d0

Please sign in to comment.