From 6529cc49502ffd73ab7085d4e90b60b2eef90726 Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Tue, 24 Oct 2023 11:36:19 +0200 Subject: [PATCH] Refs #19532: Fix warning displayed when showing metatraffic Signed-off-by: JesusPoderoso --- qml/DomainGraphLayout.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qml/DomainGraphLayout.qml b/qml/DomainGraphLayout.qml index 47e7f82d..e0eb7e5b 100644 --- a/qml/DomainGraphLayout.qml +++ b/qml/DomainGraphLayout.qml @@ -170,8 +170,11 @@ Item for (var c = 0; c < topicsList.count; c++) { topicsList.currentIndex = c - listViewHeight = topicsList.currentItem.height - listViewWidth += topicsList.currentItem.width + elements_spacing_ + if (topicsList.currentItem != null) + { + listViewHeight = topicsList.currentItem.height + listViewWidth += topicsList.currentItem.width + elements_spacing_ + } } topicsList.height = listViewHeight topicsList.width = listViewWidth