From e48e8cef84bf9c5f696bd0dacd2a74a76caa178b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 26 Jun 2014 17:18:27 -0700 Subject: [PATCH] Load files dropped on the window asynchronously --- src/frame_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frame_main.cpp b/src/frame_main.cpp index b7bd56fc3..3d749900b 100644 --- a/src/frame_main.cpp +++ b/src/frame_main.cpp @@ -59,6 +59,7 @@ #include "video_controller.h" #include "video_display.h" +#include #include #include @@ -87,7 +88,7 @@ public: std::vector files; for (wxString const& fn : filenames) files.push_back(from_wx(fn)); - context->project->LoadList(files); + agi::dispatch::Main().Async([=] { context->project->LoadList(files); }); return true; } };