Merge pull request #2660 from okrc/patch-1

Avoid blocking the Explorer when dragging
This commit is contained in:
DavidXanatos 2023-02-01 19:46:06 +01:00 committed by GitHub
commit 4b85c01ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ void CSandMan::dropEvent(QDropEvent* e)
Commands.append(url.toLocalFile().replace("/", "\\")); Commands.append(url.toLocalFile().replace("/", "\\"));
} }
RunSandboxed(Commands); QTimer::singleShot(0, this, [Commands, this]() { RunSandboxed(Commands); });
} }
void CSandMan::timerEvent(QTimerEvent* pEvent) void CSandMan::timerEvent(QTimerEvent* pEvent)