diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index c1df59111..a6f4746f5 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -453,7 +453,6 @@ QString CommandController::execCommand(const QString &textNoEmoji, } auto *userPopup = new UserInfoPopup; userPopup->setData(words[1], channel); - userPopup->setActionOnFocusLoss(BaseWindow::Delete); userPopup->move(QCursor::pos()); userPopup->show(); return ""; diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 34b178f99..74d35c025 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -92,9 +92,6 @@ UserInfoPopup::UserInfoPopup() { this->setWindowTitle("Usercard"); this->setStayInScreenRect(true); -#ifdef Q_OS_LINUX - this->setWindowFlag(Qt::Dialog); -#endif // Close the popup when Escape is pressed createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });