From fe886ca75591e3122e7123590dd09bedbc549199 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 21 Feb 2014 11:20:15 +0000 Subject: Remove stream _legacy_id stuff. --- src/tools/dcpomatic.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 1f546b64f..ce00cb13f 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -324,6 +324,17 @@ public: overall_panel->SetSizer (main_sizer); } + void check_film_state_version (int v) + { + if (v == 4) { + error_dialog ( + this, + _("This film was created with an old version of DVD-o-matic and may not load correctly " + "in this version. Please check the film's settings carefully.") + ); + } + } + private: void set_film () @@ -405,6 +416,7 @@ private: try { film.reset (new Film (wx_to_std (c->GetPath ()))); film->read_metadata (); + check_film_state_version (film->state_version ()); film->log()->set_level (log_level); set_film (); } catch (std::exception& e) { @@ -662,6 +674,8 @@ class App : public wxApp _timer.reset (new wxTimer (this)); _timer->Start (1000); + _frame->check_film_state_version (film->state_version ()); + UpdateChecker::instance()->StateChanged.connect (boost::bind (&App::update_checker_state_changed, this)); if (Config::instance()->check_for_updates ()) { UpdateChecker::instance()->run (); @@ -746,7 +760,7 @@ class App : public wxApp } } - wxFrame* _frame; + Frame* _frame; shared_ptr _timer; }; -- cgit v1.2.3