summaryrefslogtreecommitdiff
path: root/src/wx/content_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/content_view.cc')
-rw-r--r--src/wx/content_view.cc11
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;
+}