mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-30 08:13:25 -05:00
parent
0b71cb1dad
commit
deb0926497
@ -615,11 +615,17 @@ void DatabaseOpenWidget::toggleQuickUnlockScreen()
|
|||||||
{
|
{
|
||||||
if (canPerformQuickUnlock()) {
|
if (canPerformQuickUnlock()) {
|
||||||
m_ui->centralStack->setCurrentIndex(1);
|
m_ui->centralStack->setCurrentIndex(1);
|
||||||
|
// Work around qt issue where focus is stolen even if not visible
|
||||||
|
if (m_ui->quickUnlockButton->isVisible()) {
|
||||||
m_ui->quickUnlockButton->setFocus();
|
m_ui->quickUnlockButton->setFocus();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
m_ui->centralStack->setCurrentIndex(0);
|
m_ui->centralStack->setCurrentIndex(0);
|
||||||
|
// Work around qt issue where focus is stolen even if not visible
|
||||||
|
if (m_ui->editPassword->isVisible()) {
|
||||||
m_ui->editPassword->setFocus();
|
m_ui->editPassword->setFocus();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseOpenWidget::triggerQuickUnlock()
|
void DatabaseOpenWidget::triggerQuickUnlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user