diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 15:18:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 01:44:15 +0200 |
| commit | 3cbc5434edfd0eff96d4e25313d1dfcde478070c (patch) | |
| tree | 69b3d64de7714edc5e1c477766a2629eb8b0a75e /src/wx | |
| parent | 9b7a360f05b5074b1a13bf329416e1f86eb27f9d (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 47fb46970..2ec174260 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -135,19 +135,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 61557ce1c..0ba021b62 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 */ |
