From 9a63e803860a64b91074a3ff46ff348fe99ab192 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 30 Nov 2024 10:15:20 -0500 Subject: [PATCH] Fix crash on Linux when database is closed without hardware key present * Fixes #11450 --- src/gui/osutils/DeviceListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/osutils/DeviceListener.cpp b/src/gui/osutils/DeviceListener.cpp index e51229b9c4..d480393080 100644 --- a/src/gui/osutils/DeviceListener.cpp +++ b/src/gui/osutils/DeviceListener.cpp @@ -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); }); }); }