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:
Janek Bevendorff 2018-01-22 21:42:22 +01:00
parent 28ebdb72a0
commit 0f5307437c
No known key found for this signature in database
GPG key ID: 2FDEB0D40BCA5E11
6 changed files with 54 additions and 47 deletions

View file

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