diff options
author | Robin Gareus <robin@gareus.org> | 2013-04-11 19:49:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-04-11 19:49:48 +0200 |
commit | 66ee2c8e597ca9a07d614cf56b4002e5303e3645 (patch) | |
tree | 9131785c3f5d4b419f127f9f6726b820d8de4fae /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | b7c617b0578ec7e8d75dcd604c316459d6ac0708 (diff) |
enable videotimeline by default
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 0cfe341211..256a1a593e 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -121,9 +121,7 @@ ARDOUR_UI::set_session (Session *s) secondary_clock->set_session (s); big_clock->set_session (s); time_info_box->set_session (s); -#ifdef WITH_VIDEOTIMELINE video_timeline->set_session (s); -#endif /* sensitize menu bar options that are now valid */ @@ -215,11 +213,10 @@ ARDOUR_UI::set_session (Session *s) int ARDOUR_UI::unload_session (bool hide_stuff) { -#ifdef WITH_VIDEOTIMELINE if (_session) { ARDOUR_UI::instance()->video_timeline->sync_session_state(); } -#endif + if (_session && _session->dirty()) { std::vector<std::string> actions; actions.push_back (_("Don't close")); @@ -250,9 +247,8 @@ ARDOUR_UI::unload_session (bool hide_stuff) ActionManager::set_sensitive (ActionManager::session_sensitive_actions, false); rec_button.set_sensitive (false); -#ifdef WITH_VIDEOTIMELINE + ARDOUR_UI::instance()->video_timeline->close_session(); -#endif stop_blinking (); stop_clocking (); |