From 5326d24c87e6861c6f096f7f658353416a006bfd Mon Sep 17 00:00:00 2001 From: okrc Date: Wed, 1 Feb 2023 12:42:14 +0800 Subject: [PATCH] Avoid blocking of resource manager when dragging --- SandboxiePlus/SandMan/SandMan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index a2a75e1a..32429205 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -1366,7 +1366,7 @@ void CSandMan::dropEvent(QDropEvent* e) Commands.append(url.toLocalFile().replace("/", "\\")); } - RunSandboxed(Commands); + QTimer::singleShot(0, this, [Commands, this]() { RunSandboxed(Commands); }); } void CSandMan::timerEvent(QTimerEvent* pEvent)