Fix double separator on session range context menu.
authorCarl Hetherington <carl@carlh.net>
Thu, 22 Mar 2012 16:42:21 +0000 (16:42 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 22 Mar 2012 16:42:21 +0000 (16:42 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11751 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_markers.cc

index 96ae8e66e0eaa1fe280af930d7e0029e21be8c2f..7090fc23cdd9522e0efe3079b85eb8c96a7b2ff9 100644 (file)
@@ -894,7 +894,7 @@ Editor::build_range_marker_menu (bool loop_or_punch, bool session)
                items.push_back (MenuElem (_("Remove Range"), sigc::mem_fun(*this, &Editor::marker_menu_remove)));
        }
 
-       if (loop_or_punch_or_session) {
+       if (!loop_or_punch_or_session || !session) {
                items.push_back (SeparatorElem());
        }