Skip to content

Commit

Permalink
Fix crash on Linux when database is closed without hardware key present
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Nov 30, 2024
1 parent b29993a commit 9a63e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/osutils/DeviceListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); });
});
}

Expand Down

0 comments on commit 9a63e80

Please sign in to comment.