mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-26 17:31:42 +00:00
Defer loading .rdc from drag & drop, to unblock the calling application
This commit is contained in:
@@ -1776,7 +1776,11 @@ void MainWindow::dropEvent(QDropEvent *event)
|
||||
{
|
||||
QString fn = dragFilename(event->mimeData());
|
||||
if(!fn.isEmpty())
|
||||
LoadFromFilename(fn, false);
|
||||
{
|
||||
// we defer this so we can return immediately and unblock whichever application dropped the
|
||||
// item.
|
||||
GUIInvoke::defer([this, fn]() { LoadFromFilename(fn, false); });
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::LoadSaveLayout(QAction *action, bool save)
|
||||
|
||||
Reference in New Issue
Block a user