From c31552d0d50e6f7122d26045a09e3f23fd4c1371 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Jun 2016 22:23:08 +0100 Subject: [PATCH 1/1] Big speed-up to content joining. --- src/wx/content_menu.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index 3d5b00279..d5e190adf 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -160,9 +160,7 @@ ContentMenu::join () try { shared_ptr joined (new FFmpegContent (film, fc)); - BOOST_FOREACH (shared_ptr i, _content) { - film->remove_content (i); - } + film->remove_content (_content); film->add_content (joined); } catch (JoinError& e) { error_dialog (_parent, std_to_wx (e.what ())); -- 2.30.2