Fix sensitivity of add-ov option in the content menu.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Oct 2016 09:41:00 +0000 (10:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Oct 2016 09:41:00 +0000 (10:41 +0100)
src/wx/content_menu.cc

index 8b41c7039943895d0aa0ad98a44a0e3214f30341..a96461c301643bda66464dff5b756b8b858c7e2b 100644 (file)
@@ -127,6 +127,7 @@ ContentMenu::popup (weak_ptr<Film> film, ContentList c, TimelineContentViewList
                shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent> (_content.front ());
                if (dcp) {
                        _kdm->Enable (dcp->encrypted ());
+                       _ov->Enable (dcp->needs_assets ());
                        DCPExaminer ex (dcp);
                        list<shared_ptr<dcp::CPL> > cpls = ex.cpls ();
                        _choose_cpl->Enable (cpls.size() > 1);
@@ -144,6 +145,7 @@ ContentMenu::popup (weak_ptr<Film> film, ContentList c, TimelineContentViewList
                        }
                } else {
                        _kdm->Enable (false);
+                       _ov->Enable (false);
                        _choose_cpl->Enable (false);
                }
        } else {