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.
This commit is contained in:
Leon Richardt 2019-08-17 01:35:24 +02:00
parent 352d5729cc
commit 4a1712f9a2

View file

@ -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);