summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-15 21:50:01 +0200
committerRobin Gareus <robin@gareus.org>2015-10-15 21:50:01 +0200
commit5ad63bd3f8e84ba7ef6d8a942c2a8c078fa03fa4 (patch)
treeb681676150da6d3d81bca07067f75498620d8bdf /gtk2_ardour/ardour_ui.cc
parenta51ea6cf2ea9c5958fd1cfa088a4b292a0552a5b (diff)
re-enable engine sensitive actions..
..after an engine stop/start cycle. e.g "New Insert", "New External Send"
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index fc28ee741f..97005e33a8 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -478,6 +478,7 @@ ARDOUR_UI::engine_stopped ()
void
ARDOUR_UI::engine_running ()
{
+ ENSURE_GUI_THREAD (*this, &ARDOUR_UI::engine_running)
if (first_time_engine_run) {
post_engine();
first_time_engine_run = false;
@@ -492,6 +493,8 @@ ARDOUR_UI::engine_running ()
update_sample_rate (AudioEngine::instance()->sample_rate());
update_timecode_format ();
update_peak_thread_work ();
+ ActionManager::set_sensitive (ActionManager::engine_sensitive_actions, true);
+ ActionManager::set_sensitive (ActionManager::engine_opposite_sensitive_actions, false);
}
void