From ca68031795ab85c5b6585b13f372e3e0ade2c209 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 e51229b9c..d48039308 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); }); }); }