mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-09 19:28:31 -05:00
Fix unit test crash
This commit is contained in:
parent
434d0fb1c0
commit
46942413db
@ -109,6 +109,7 @@ private:
|
|||||||
bool appExitCalled;
|
bool appExitCalled;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define KEEPASSXC_MAIN_WINDOW qobject_cast<MainWindow*>(qobject_cast<Application*>(qApp)->mainWindow())
|
#define KEEPASSXC_MAIN_WINDOW (qobject_cast<Application*>(qApp) ? \
|
||||||
|
qobject_cast<MainWindow*>(qobject_cast<Application*>(qApp)->mainWindow()) : nullptr)
|
||||||
|
|
||||||
#endif // KEEPASSX_MAINWINDOW_H
|
#endif // KEEPASSX_MAINWINDOW_H
|
||||||
|
@ -33,9 +33,11 @@ YkChallengeResponseKey::YkChallengeResponseKey(int slot, bool blocking)
|
|||||||
: m_slot(slot),
|
: m_slot(slot),
|
||||||
m_blocking(blocking)
|
m_blocking(blocking)
|
||||||
{
|
{
|
||||||
|
if (KEEPASSXC_MAIN_WINDOW) {
|
||||||
connect(this, SIGNAL(userInteractionRequired()), KEEPASSXC_MAIN_WINDOW, SLOT(showYubiKeyPopup()));
|
connect(this, SIGNAL(userInteractionRequired()), KEEPASSXC_MAIN_WINDOW, SLOT(showYubiKeyPopup()));
|
||||||
connect(this, SIGNAL(userConfirmed()), KEEPASSXC_MAIN_WINDOW, SLOT(hideYubiKeyPopup()));
|
connect(this, SIGNAL(userConfirmed()), KEEPASSXC_MAIN_WINDOW, SLOT(hideYubiKeyPopup()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray YkChallengeResponseKey::rawKey() const
|
QByteArray YkChallengeResponseKey::rawKey() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user