diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-15 22:25:39 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-22 23:26:18 +0000 |
| commit | 620b7761a33d2e3641cd911bfe58e0fbb928c888 (patch) | |
| tree | 702872826fdfefa486816a1e20a1e2e4f2bad965 /src/wx/content_view.cc | |
| parent | 1b4d5951147bc88d771d0afaa98bbfa4ed85a822 (diff) | |
Fix content list in player.
Diffstat (limited to 'src/wx/content_view.cc')
| -rw-r--r-- | src/wx/content_view.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/wx/content_view.cc b/src/wx/content_view.cc index aeefb65df..e1503e790 100644 --- a/src/wx/content_view.cc +++ b/src/wx/content_view.cc @@ -33,6 +33,7 @@ #include <wx/progdlg.h> using std::string; +using std::cout; using boost::shared_ptr; using boost::weak_ptr; using boost::optional; @@ -64,10 +65,6 @@ ContentView::selected () const void ContentView::update () { - if (!IsShown()) { - return; - } - shared_ptr<Film> film = _film.lock (); if (!film) { return; @@ -158,3 +155,9 @@ ContentView::get (string digest) const return shared_ptr<Content>(); } + +void +ContentView::set_film (weak_ptr<Film> film) +{ + _film = film; +} |
