From 205d658f802b93635c139b24c6a8a93b1e3b6a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?= <44851575+zneix@users.noreply.github.com> Date: Sat, 27 Jun 2020 12:58:44 +0200 Subject: [PATCH] Fixed /usercard on linux (#1755) - /usercard command doesn't close imidiatelly - removed "Dialog" window flag. It seems to be unnecessary and causes issues (on left-clicking user name it sometimes didnt render unless you clicked 2-3 times. --- src/controllers/commands/CommandController.cpp | 1 - src/widgets/dialogs/UserInfoPopup.cpp | 3 --- 2 files changed, 4 deletions(-) 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(); });