Fix crash on Linux when database is closed without hardware key present

* Fixes #11450
This commit is contained in:
Jonathan White 2024-11-30 10:15:20 -05:00
parent b29993abe5
commit 9a63e80386

View File

@ -35,7 +35,7 @@ void DeviceListener::connectSignals(DEVICELISTENER_IMPL* listener)
{
connect(listener, &DEVICELISTENER_IMPL::devicePlugged, this, [&](bool state, void* ctx, void* device) {
// Wait a few ms to prevent USB device access conflicts
QTimer::singleShot(50, [&] { emit devicePlugged(state, ctx, device); });
QTimer::singleShot(50, this, [&] { emit devicePlugged(state, ctx, device); });
});
}