1
Fork 0
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:
Andreas Kling 2019-12-12 22:49:54 +01:00
parent d8b7cd940f
commit 9150be4716
3 changed files with 9 additions and 8 deletions

View file

@ -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))
{