Skip to content

Commit 4552bd5

Browse files
committed
Fix current node name not being set for message center
1 parent 5a0524f commit 4552bd5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Source/Processors/Channel/InfoObjects.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ HistoryObject::HistoryObject() {}
3030
NamedInfoObject::NamedInfoObject() {}
3131

3232
//NodeInfoBase
33-
NodeInfoBase::NodeInfoBase(uint16 id, uint16 idx) :
34-
m_nodeID(id), m_nodeIdx(idx)
33+
NodeInfoBase::NodeInfoBase(uint16 id, uint16 idx, String type, String name) :
34+
m_nodeID(id), m_nodeIdx(idx), m_currentNodeType(type), m_currentNodeName(name)
3535
{}
3636

3737
NodeInfoBase::~NodeInfoBase()
@@ -148,7 +148,7 @@ String NamedInfoObject::getDescription() const
148148

149149
//InfoObjectCommon
150150
InfoObjectCommon::InfoObjectCommon(uint16 idx, uint16 typeidx, float sampleRate, const GenericProcessor* source, uint16 subproc)
151-
: NodeInfoBase(source->getNodeId(), idx),
151+
: NodeInfoBase(source->getNodeId(), idx, source->getName(), source->getName()), //TODO: fix those two when we have the ability to rename processors
152152
SourceProcessorInfo(source, subproc),
153153
m_sourceIndex(idx),
154154
m_sourceTypeIndex(typeidx),

Source/Processors/Channel/InfoObjects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PLUGIN_API NodeInfoBase
5858
String getCurrentNodeName() const;
5959
protected:
6060
NodeInfoBase() = delete;
61-
NodeInfoBase(uint16 id, uint16 idx);
61+
NodeInfoBase(uint16 id, uint16 idx, String type, String name);
6262
private:
6363
uint16 m_nodeID{ 0 };
6464
uint16 m_nodeIdx{ 0 };

0 commit comments

Comments
 (0)