From 7d0839393b1d4f0db62581fdc4980515740f0dc6 Mon Sep 17 00:00:00 2001 From: James Crook Date: Mon, 3 Sep 2018 22:02:15 +0100 Subject: [PATCH] Report selectedness of all tracks, not just WaveTracks. (Suggested by Steve Daulton). --- src/commands/GetInfoCommand.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/GetInfoCommand.cpp b/src/commands/GetInfoCommand.cpp index 80c546ad2..a2b5b6822 100644 --- a/src/commands/GetInfoCommand.cpp +++ b/src/commands/GetInfoCommand.cpp @@ -260,6 +260,10 @@ bool GetInfoCommand::SendTracks(const CommandContext & context) context.StartStruct(); context.AddItem( trk->GetName(), "name" ); context.AddBool( (trk == fTrack), "focused"); + context.AddBool( trk->GetSelected(), "selected" ); + //JKC: Possibly add these two later... + //context.AddItem( trk->GetKind(), "kind" ); + //context.AddItem( trk->GetHeight(), "height" ); auto t = dynamic_cast( trk ); if( t ) { @@ -267,7 +271,6 @@ bool GetInfoCommand::SendTracks(const CommandContext & context) context.AddItem( t->GetEndTime(), "end" ); context.AddItem( t->GetPan() , "pan"); context.AddItem( t->GetGain() , "gain"); - context.AddBool( t->GetSelected(), "selected" ); context.AddBool( t->GetLinked(), "linked"); context.AddBool( t->GetSolo(), "solo" ); context.AddBool( t->GetMute(), "mute");