mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-24 15:25:31 -04:00
Only poll YubiKey for currently visible tab
This commit is contained in:
parent
8e91a89a37
commit
91761a2bea
5 changed files with 15 additions and 15 deletions
|
@ -102,6 +102,10 @@ void DatabaseOpenWidget::showEvent(QShowEvent* event)
|
|||
{
|
||||
DialogyWidget::showEvent(event);
|
||||
m_ui->editPassword->setFocus();
|
||||
|
||||
#ifdef WITH_XC_YUBIKEY
|
||||
pollYubikey();
|
||||
#endif
|
||||
}
|
||||
|
||||
void DatabaseOpenWidget::load(const QString& filename)
|
||||
|
@ -118,11 +122,6 @@ void DatabaseOpenWidget::load(const QString& filename)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef WITH_XC_YUBIKEY
|
||||
m_ui->comboChallengeResponse->clear();
|
||||
pollYubikey();
|
||||
#endif
|
||||
|
||||
m_ui->editPassword->setFocus();
|
||||
}
|
||||
|
||||
|
@ -229,7 +228,7 @@ CompositeKey DatabaseOpenWidget::databaseKey()
|
|||
|
||||
void DatabaseOpenWidget::reject()
|
||||
{
|
||||
Q_EMIT editFinished(false);
|
||||
emit editFinished(false);
|
||||
}
|
||||
|
||||
void DatabaseOpenWidget::activatePassword()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue