From 06b7a0949ffc97d186ed4738b9328452e4f4e248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Thu, 30 Nov 2017 09:41:27 +0100 Subject: [PATCH] Sequencer - Button to clear selected tracks --- ui-sequencer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui-sequencer.cc b/ui-sequencer.cc index 75efaaf..b80632f 100644 --- a/ui-sequencer.cc +++ b/ui-sequencer.cc @@ -687,6 +687,12 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept sub = displaySelector ? SW_NONE : tsSelectedTab; curveFinder = T_String{}; } + SameLine( ); + if ( ToolbarButton( ICON_FA_BAN , BtSize , "Clear selected tracks." , + sTracks.size( ) != 0 ) ) { + sTracks.clear( ); + sInputs.clear( ); + } } /*------------------------------------------------------------------------------*/