mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
ProfileViewer: Make sure ProfileNodes have the correct parent pointer
We were forgetting to call ProfileNode::add_child() which is how the parent node pointer gets set. This fixes the weird looking GTreeView.
This commit is contained in:
parent
d8b7cd940f
commit
9150be4716
3 changed files with 9 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
|||
#include <LibCore/CFile.h>
|
||||
#include <stdio.h>
|
||||
|
||||
Profile::Profile(const JsonArray& json, NonnullRefPtrVector<ProfileNode>&& roots)
|
||||
Profile::Profile(const JsonArray& json, Vector<NonnullRefPtr<ProfileNode>>&& roots)
|
||||
: m_json(json)
|
||||
, m_roots(move(roots))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue