update editor mixer action if strip is hidden due to track deselect (Carl)
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 15 Mar 2007 20:53:05 +0000 (20:53 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 15 Mar 2007 20:53:05 +0000 (20:53 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1600 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_route_list.cc

index 99031f168ced2e37b4c4b3f7cf02f72b952704c8..3983220113636b88f757df04ab4b432e9f8c05e8 100644 (file)
@@ -27,6 +27,7 @@
 #include "audio_time_axis.h"
 #include "mixer_strip.h"
 #include "gui_thread.h"
+#include "actions.h"
 
 #include <ardour/route.h>
 #include <ardour/audio_track.h>
@@ -148,9 +149,10 @@ Editor::remove_route (TimeAxisView *tv)
                }
        }
        /* since the editor mixer goes away when you remove a route, set the
-        * button to inacttive 
+        * button to inactive and untick the menu option
         */
        editor_mixer_button.set_active(false);
+       ActionManager::uncheck_toggleaction ("<Actions>/Editor/show-editor-mixer");
 
        /* and disable if all tracks and/or routes are gone */