From 068ba4cabe7ca828cfb66a87e82b9b59ade8c320 Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Tue, 7 Nov 2023 10:32:53 +0100 Subject: [PATCH] Refs #19743: Add load model check for empty filter Signed-off-by: JesusPoderoso --- qml/DomainGraphLayout.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qml/DomainGraphLayout.qml b/qml/DomainGraphLayout.qml index fa17e966..748ce3f8 100644 --- a/qml/DomainGraphLayout.qml +++ b/qml/DomainGraphLayout.qml @@ -1310,7 +1310,14 @@ Item // Obtain given domain id graph JSON model function load_model() { - filter_model_by_topic ("") + if (filtered_topics_.length > 0) + { + filter_model_by_topic (filtered_topics_[filtered_topics_.length-1]) + } + else + { + filter_model_by_topic ("") + } } // Filter model by topic