diff --git a/Source/Processors/Channel/InfoObjects.cpp b/Source/Processors/Channel/InfoObjects.cpp index cb847a6b0468b46e0b8d14e62230fd050c0cadae..ac32bb6562afde1153d4801792c9d14f5be902cc 100644 --- a/Source/Processors/Channel/InfoObjects.cpp +++ b/Source/Processors/Channel/InfoObjects.cpp @@ -30,8 +30,8 @@ HistoryObject::HistoryObject() {} NamedInfoObject::NamedInfoObject() {} //NodeInfoBase -NodeInfoBase::NodeInfoBase(uint16 id, uint16 idx) : -m_nodeID(id), m_nodeIdx(idx) +NodeInfoBase::NodeInfoBase(uint16 id, uint16 idx, String type, String name) : +m_nodeID(id), m_nodeIdx(idx), m_currentNodeType(type), m_currentNodeName(name) {} NodeInfoBase::~NodeInfoBase() @@ -148,7 +148,7 @@ String NamedInfoObject::getDescription() const //InfoObjectCommon InfoObjectCommon::InfoObjectCommon(uint16 idx, uint16 typeidx, float sampleRate, const GenericProcessor* source, uint16 subproc) - : NodeInfoBase(source->getNodeId(), idx), + : NodeInfoBase(source->getNodeId(), idx, source->getName(), source->getName()), //TODO: fix those two when we have the ability to rename processors SourceProcessorInfo(source, subproc), m_sourceIndex(idx), m_sourceTypeIndex(typeidx), diff --git a/Source/Processors/Channel/InfoObjects.h b/Source/Processors/Channel/InfoObjects.h index cdda5769ef0e0546a494e5c4617b5ae97ab67666..597fa4f307d1d52d6abe4db1898c32f2cc184bbc 100644 --- a/Source/Processors/Channel/InfoObjects.h +++ b/Source/Processors/Channel/InfoObjects.h @@ -58,7 +58,7 @@ public: String getCurrentNodeName() const; protected: NodeInfoBase() = delete; - NodeInfoBase(uint16 id, uint16 idx); + NodeInfoBase(uint16 id, uint16 idx, String type, String name); private: uint16 m_nodeID{ 0 }; uint16 m_nodeIdx{ 0 };