summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-12-18 22:36:19 +0000
committerCarl Hetherington <cth@carlh.net>2018-12-18 22:36:19 +0000
commit8b8c91182bef703e9ea6b89bd6c93eafa71bc97f (patch)
tree7bca75b3114937f0e1c60ccb239264b8863f347f
parenta7125ea9304abfb7207b3007fc9b9625d6e473f5 (diff)
swaroop: unload film when playlist ends.
-rw-r--r--src/wx/swaroop_controls.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc
index 176efc443..292898b16 100644
--- a/src/wx/swaroop_controls.cc
+++ b/src/wx/swaroop_controls.cc
@@ -405,5 +405,10 @@ SwaroopControls::viewer_finished ()
return;
}
- next_clicked ();
+ _selected_playlist_position++;
+ if (_selected_playlist_position < int(_playlists[*_selected_playlist].get().size())) {
+ update_current_content ();
+ } else {
+ ResetFilm (shared_ptr<Film>(new Film(optional<boost::filesystem::path>())));
+ }
}