diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-01 21:02:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-01 21:02:19 +0100 |
| commit | 32790bbf7feaa4aa9b898706622ce4d8661fa54f (patch) | |
| tree | a00ad79f6a0bfbb4871760c6c538597af098c93e /src | |
| parent | 4ca2fcc360bbae05e896590fd53327616f9bd2a5 (diff) | |
Fix aff/666: thumbnail scan is run twice when changing the content file of a film.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 0d17baf83..e647a5886 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -171,7 +171,7 @@ END_EVENT_TABLE () FilmViewer::FilmViewer (Film* f, wxWindow* p) : wxPanel (p) - , _film (f) + , _film (0) { _sizer = new wxBoxSizer (wxVERTICAL); SetSizer (_sizer); @@ -232,6 +232,10 @@ FilmViewer::film_changed (Film::Property p) void FilmViewer::set_film (Film* f) { + if (_film == f) { + return; + } + _film = f; _thumb_panel->set_film (_film); |
