summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-12 22:59:18 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-12 22:59:18 +0100
commitf734f683220ac9d58ee199f56ee0882d33a1499b (patch)
tree7e72e168fa8b2fd013f33d77d57230038ec691a1 /src
parent2efd23edadea3db321ea1290638d604f3496c94f (diff)
Punt jump-to-selected to a UI idle handler.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_panel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 704f25169..74d0cf545 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -277,8 +277,8 @@ ContentPanel::selection_changed ()
}
}
- if (go_to && Config::instance()->jump_to_selected ()) {
- _film_viewer->set_position (go_to.get().ceil(_film->video_frame_rate()));
+ if (go_to && Config::instance()->jump_to_selected() && signal_manager) {
+ signal_manager->when_idle(boost::bind(&FilmViewer::set_position, _film_viewer, go_to.get().ceil(_film->video_frame_rate())));
}
if (_timeline_dialog) {