From 3ee2b753e68fc64a7160e1cf53f8f76a15833cb0 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 10 Jul 2018 15:40:08 +0200 Subject: [PATCH] Fix circular import Yeah, running tests is not enough when it doesn't catch these. Contributes to issue CURA-5460. --- cura/Machines/Models/BaseMaterialsModel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Machines/Models/BaseMaterialsModel.py b/cura/Machines/Models/BaseMaterialsModel.py index f21474bd33..5480037563 100644 --- a/cura/Machines/Models/BaseMaterialsModel.py +++ b/cura/Machines/Models/BaseMaterialsModel.py @@ -3,7 +3,7 @@ from PyQt5.QtCore import QObject, Qt, pyqtSignal, pyqtProperty -from cura.CuraApplication import CuraApplication +import cura.CuraApplication from UM.Qt.ListModel import ListModel @@ -26,7 +26,7 @@ class BaseMaterialsModel(ListModel): def __init__(self, parent: QObject = None) -> None: super().__init__(parent) - self._application = CuraApplication.getInstance() + self._application = cura.CuraApplication.CuraApplication.getInstance() self._machine_manager = self._application.getMachineManager() self.addRoleName(self.RootMaterialIdRole, "root_material_id")