From 4a1712f9a2e185f7ee1b09753048480e7846d5f9 Mon Sep 17 00:00:00 2001 From: Leon Richardt Date: Sat, 17 Aug 2019 01:35:24 +0200 Subject: [PATCH] Fix "Manage Accounts" button This commit fixes the unresponsiveness of the "Manage Account" button (described in #1188). Apparently, focus was lost when pressing down the mouse button. This is circumvented by setting the focus policy of the button to `Qt::NoFocus`. The button then works as expected and opens the "Account" page in the preferences. --- src/widgets/AccountSwitchPopupWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/AccountSwitchPopupWidget.cpp b/src/widgets/AccountSwitchPopupWidget.cpp index 693fe6da0..7a664d758 100644 --- a/src/widgets/AccountSwitchPopupWidget.cpp +++ b/src/widgets/AccountSwitchPopupWidget.cpp @@ -30,6 +30,7 @@ AccountSwitchPopupWidget::AccountSwitchPopupWidget(QWidget *parent) auto hbox = new QHBoxLayout(); auto manageAccountsButton = new QPushButton(this); manageAccountsButton->setText("Manage Accounts"); + manageAccountsButton->setFocusPolicy(Qt::NoFocus); hbox->addWidget(manageAccountsButton); vbox->addLayout(hbox);