mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-13 01:59:22 -04:00
Fix TOTP Dialog not closing on lock
This commit is contained in:
parent
181ad76ec9
commit
7250fd9313
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 Weslly Honorato <weslly@protonmail.com>
|
* Copyright (C) 2017 Weslly Honorato <weslly@protonmail.com>
|
||||||
* Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
|
* Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -42,7 +42,7 @@ TotpDialog::TotpDialog(QWidget* parent, Entry* entry)
|
||||||
resetCounter();
|
resetCounter();
|
||||||
updateProgressBar();
|
updateProgressBar();
|
||||||
|
|
||||||
connect(parent, SIGNAL(lockedDatabase()), SLOT(close()));
|
connect(parent, SIGNAL(databaseLocked()), SLOT(close()));
|
||||||
connect(&m_totpUpdateTimer, SIGNAL(timeout()), this, SLOT(updateProgressBar()));
|
connect(&m_totpUpdateTimer, SIGNAL(timeout()), this, SLOT(updateProgressBar()));
|
||||||
connect(&m_totpUpdateTimer, SIGNAL(timeout()), this, SLOT(updateSeconds()));
|
connect(&m_totpUpdateTimer, SIGNAL(timeout()), this, SLOT(updateSeconds()));
|
||||||
m_totpUpdateTimer.start(m_step * 10);
|
m_totpUpdateTimer.start(m_step * 10);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue