diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 0991790f3..a7f3add5e 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -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(); });