diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 15:18:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-16 17:35:51 +0100 |
| commit | cf7b7beb82606ca9a961bb705a3e2c550808b961 (patch) | |
| tree | 4ee3aaefc7f96a44d3e8545546b5ffead744a6c9 /src/wx | |
| parent | b8be074080290e14b9ff7bf381f0ca0d69eee0df (diff) | |
Set window title based on the directory from Film.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/film_editor.cc | 7 | ||||
| -rw-r--r-- | src/wx/film_editor.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index d604f678d..a99f6ed32 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -134,19 +134,12 @@ FilmEditor::set_film (shared_ptr<Film> film) _dcp_panel->set_film (_film); if (!_film) { - FileChanged (""); return; } _film->Change.connect (bind(&FilmEditor::film_change, this, _1, _2)); _film->ContentChange.connect (bind(&FilmEditor::film_content_change, this, _1, _3)); - if (_film->directory()) { - FileChanged (_film->directory().get()); - } else { - FileChanged (""); - } - if (!_film->content().empty()) { _content_panel->set_selection (_film->content().front()); } diff --git a/src/wx/film_editor.h b/src/wx/film_editor.h index 6aff127d8..e03c2ebfa 100644 --- a/src/wx/film_editor.h +++ b/src/wx/film_editor.h @@ -50,7 +50,6 @@ public: void set_film (std::shared_ptr<Film>); void first_shown (); - boost::signals2::signal<void (boost::filesystem::path)> FileChanged; boost::signals2::signal<void (void)> SelectionChanged; /* Stuff for panels */ |
