Fix problems when adding the same content to a playback playlist twice.
authorCarl Hetherington <cth@carlh.net>
Wed, 7 Nov 2018 00:28:29 +0000 (00:28 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 7 Nov 2018 00:28:29 +0000 (00:28 +0000)
src/wx/controls.cc

index 8b2a17b09a5aa5f23ac757acd61fd52d592b0350..f7573c28bb01c8522dae32f9da83b420667fe7ae 100644 (file)
@@ -214,7 +214,7 @@ Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor
 void
 Controls::add_clicked ()
 {
-       shared_ptr<Content> sel = selected_content ();
+       shared_ptr<Content> sel = selected_content()->clone();
        DCPOMATIC_ASSERT (sel);
        _film->examine_and_add_content (sel);
        bool const ok = display_progress (_("DCP-o-matic"), _("Loading DCP"));