Avoid blocking of resource manager when dragging

This commit is contained in:
okrc 2023-02-01 12:42:14 +08:00
parent 2a2f274b52
commit 5326d24c87
No known key found for this signature in database
GPG Key ID: B5561DD8E69103E5
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("/", "\\"));
}
RunSandboxed(Commands);
QTimer::singleShot(0, this, [Commands, this]() { RunSandboxed(Commands); });
}
void CSandMan::timerEvent(QTimerEvent* pEvent)