diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-25 14:11:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-25 14:11:29 +0100 |
| commit | 49e401f651ccf6c409fc84f57aa205f1920ef070 (patch) | |
| tree | fe7b078954380a73a645144359f1c717c1e22949 /src/wx/film_editor.cc | |
| parent | a6d6a794b28c3b3e6679f01c1890f396453eb5ac (diff) | |
Tidy up Frame / App classes, reducing use of static variables.
Diffstat (limited to 'src/wx/film_editor.cc')
| -rw-r--r-- | src/wx/film_editor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 87310d21a..e2886b5f5 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -70,7 +70,7 @@ using boost::dynamic_pointer_cast; using boost::lexical_cast; /** @param f Film to edit */ -FilmEditor::FilmEditor (shared_ptr<Film> f, wxWindow* parent) +FilmEditor::FilmEditor (wxWindow* parent) : wxPanel (parent) , _menu (this) , _generally_sensitive (true) @@ -86,7 +86,6 @@ FilmEditor::FilmEditor (shared_ptr<Film> f, wxWindow* parent) make_dcp_panel (); _main_notebook->AddPage (_dcp_panel, _("DCP"), false); - set_film (f); connect_to_widgets (); JobManager::instance()->ActiveJobsChanged.connect ( @@ -94,7 +93,8 @@ FilmEditor::FilmEditor (shared_ptr<Film> f, wxWindow* parent) ); Config::instance()->Changed.connect (boost::bind (&FilmEditor::config_changed, this)); - + + set_film (shared_ptr<Film> ()); SetSizerAndFit (s); } |
