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 8b2a17b..f7573c2 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"));