Fix erroneous disabling of Make DCP option after creating one (#230).
authorCarl Hetherington <cth@carlh.net>
Thu, 17 Oct 2013 14:59:33 +0000 (15:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Oct 2013 14:59:33 +0000 (15:59 +0100)
src/tools/dcpomatic.cc

index 5df51392148b327baf20a7d5333a41c4c860e55b..8d1ebf5d3930410672a3788d383143258bffccb5 100644 (file)
@@ -148,7 +148,7 @@ set_menu_sensitivity ()
        while (i != jobs.end() && dynamic_pointer_cast<TranscodeJob> (*i) == 0) {
                ++i;
        }
-       bool const dcp_creation = (i != jobs.end ());
+       bool const dcp_creation = (i != jobs.end ()) && !(*i)->finished ();
        bool const have_dcp = film && !film->dcps().empty ();
 
        for (map<wxMenuItem*, int>::iterator j = menu_items.begin(); j != menu_items.end(); ++j) {