mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-03 12:37:39 +03:00
parent
32f38cc6ed
commit
9521f63b3a
1 changed files with 8 additions and 2 deletions
|
@ -582,10 +582,16 @@ void DatabaseOpenWidget::toggleQuickUnlockScreen()
|
|||
{
|
||||
if (canPerformQuickUnlock()) {
|
||||
m_ui->centralStack->setCurrentIndex(1);
|
||||
m_ui->quickUnlockButton->setFocus();
|
||||
// Work around qt issue where focus is stolen even if not visible
|
||||
if (m_ui->quickUnlockButton->isVisible()) {
|
||||
m_ui->quickUnlockButton->setFocus();
|
||||
}
|
||||
} else {
|
||||
m_ui->centralStack->setCurrentIndex(0);
|
||||
m_ui->editPassword->setFocus();
|
||||
// Work around qt issue where focus is stolen even if not visible
|
||||
if (m_ui->editPassword->isVisible()) {
|
||||
m_ui->editPassword->setFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue