mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-29 01:28:47 -04:00
Fix multiple TOTP issues, resolves #1360
- Fix crash when deleting TOTP entry - Fix memory leak when selecting TOTP entries - Fix TOTP update timeout on DetailsWidget - Fix TOTP settings attributes not being applied before first call to totpSeed()
This commit is contained in:
parent
28ebdb72a0
commit
0f5307437c
6 changed files with 54 additions and 47 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
#include <QTimer>
|
||||
#include <totp/totp.h>
|
||||
#include "core/Entry.h"
|
||||
#include "core/Database.h"
|
||||
#include "gui/DatabaseWidget.h"
|
||||
|
@ -39,8 +41,9 @@ public:
|
|||
|
||||
private:
|
||||
double uCounter;
|
||||
quint8 m_step;
|
||||
quint8 m_step = Totp::defaultStep;
|
||||
QScopedPointer<Ui::TotpDialog> m_ui;
|
||||
QPointer<QTimer> m_totpUpdateTimer;
|
||||
|
||||
private Q_SLOTS:
|
||||
void updateTotp();
|
||||
|
@ -51,7 +54,6 @@ private Q_SLOTS:
|
|||
|
||||
protected:
|
||||
Entry* m_entry;
|
||||
DatabaseWidget* m_parent;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_TOTPDIALOG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue