diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-04-07 11:51:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-07 11:51:39 +0100 |
| commit | fdb1cacf58115881bd4d3e8cca8ba389f26400df (patch) | |
| tree | 3a91ce7a4ab088d634036f91135c7ad974b27e51 /src/lib/config.h | |
| parent | ab32017c7cc918ddd2cd35661cf64985e0abc79a (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/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index c02b12eb5..80dfb1dc9 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -302,6 +302,10 @@ public: return _dcp_asset_filename_format; } + bool jump_to_selected () const { + return _jump_to_selected; + } + /** @param n New number of local encoding threads */ void set_num_local_encoding_threads (int n) { maybe_set (_num_local_encoding_threads, n); @@ -540,6 +544,10 @@ public: void add_to_history (boost::filesystem::path p); + void set_jump_to_selected (bool j) { + maybe_set (_jump_to_selected, j); + } + void changed (Property p = OTHER); boost::signals2::signal<void (Property)> Changed; /** Emitted if ::read() failed on an existing Config file. There is nothing @@ -661,6 +669,7 @@ private: dcp::NameFormat _kdm_container_name_format; dcp::NameFormat _dcp_metadata_filename_format; dcp::NameFormat _dcp_asset_filename_format; + bool _jump_to_selected; /** Singleton instance, or 0 */ static Config* _instance; |
