summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-04-07 11:51:39 +0100
committerCarl Hetherington <cth@carlh.net>2017-04-07 11:51:39 +0100
commitfdb1cacf58115881bd4d3e8cca8ba389f26400df (patch)
tree3a91ce7a4ab088d634036f91135c7ad974b27e51 /src/wx/content_panel.cc
parentab32017c7cc918ddd2cd35661cf64985e0abc79a (diff)
Make jump-to-content-start on selection in the content list optional.
This behaviour is annoying in some cases, e.g. trying to move separate subtitle files around when looking at a particular time in the preview.
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 1aeba6372..1d748be5f 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -36,6 +36,7 @@
#include "lib/dcp_content.h"
#include "lib/case_insensitive_sorter.h"
#include "lib/playlist.h"
+#include "lib/config.h"
#include <wx/wx.h>
#include <wx/notebook.h>
#include <wx/listctrl.h>
@@ -254,7 +255,7 @@ ContentPanel::selection_changed ()
}
}
- if (go_to) {
+ if (go_to && Config::instance()->jump_to_selected ()) {
_film_viewer->set_position (go_to.get ());
}