Fix logging when loading a film. v2.14.1
authorCarl Hetherington <cth@carlh.net>
Sat, 4 May 2019 22:24:54 +0000 (22:24 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 4 May 2019 22:24:54 +0000 (22:24 +0000)
src/tools/dcpomatic.cc

index cd21d80..3fb291f 100644 (file)
@@ -415,7 +415,6 @@ public:
                film->set_name (path.filename().generic_string());
                film->write_metadata ();
                set_film (film);
-               dcpomatic_log = film->log ();
        }
 
        void load_film (boost::filesystem::path file)
@@ -463,6 +462,7 @@ public:
                if (_film) {
                        _film->Change.connect (boost::bind (&DOMFrame::film_change, this, _1));
                        _film->Message.connect (boost::bind(&DOMFrame::film_message, this, _1));
+                       dcpomatic_log = _film->log ();
                }
        }