summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-07 00:28:29 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-07 00:28:29 +0000
commit54cba12f5b76f98f69de8c3702d841b94c6df90f (patch)
tree56a01b0d36a72698c682fb59f8e555d922bbee1f
parentf1f1a0dab1329e75a9718a417d640966763b9e7d (diff)
Fix problems when adding the same content to a playback playlist twice.
-rw-r--r--src/wx/controls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index 8b2a17b09..f7573c28b 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -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"));