From 07c5c4d9f02596e4eb03d85843c9638b964c65ef Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 9 Jul 2019 10:26:49 +0200 Subject: [PATCH] Return empty model if there is no printer added yet Contributes to issue CURA-6597. --- cura/Machines/Models/IntentModel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/Machines/Models/IntentModel.py b/cura/Machines/Models/IntentModel.py index c67544e2f6..1151ff836d 100644 --- a/cura/Machines/Models/IntentModel.py +++ b/cura/Machines/Models/IntentModel.py @@ -48,6 +48,8 @@ class IntentModel(ListModel): application = cura.CuraApplication.CuraApplication.getInstance() quality_manager = application.getQualityManager() global_stack = application.getGlobalContainerStack() + if not global_stack: + self.setItems(new_items) for intent_category, quality_type in IntentManager.getInstance().currentAvailableIntents(): if intent_category == self._intent_category: