From dae0b4e51981eb169b77bec8cbc2bbd5d47cbded 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 9960ce6a..6770c3bb 100644 --- a/qml/DomainGraphLayout.qml +++ b/qml/DomainGraphLayout.qml @@ -1311,7 +1311,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