Skip to content
Snippets Groups Projects
Commit 4552bd59 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix current node name not being set for message center

parent 5a0524f7
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
......@@ -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 };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment