Only poll YubiKey for currently visible tab

This commit is contained in:
Janek Bevendorff 2017-02-21 02:19:11 +01:00
parent 8e91a89a37
commit 91761a2bea
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
5 changed files with 15 additions and 15 deletions

View file

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