Fix circular import

Yeah, running tests is not enough when it doesn't catch these.

Contributes to issue CURA-5460.
This commit is contained in:
Ghostkeeper 2018-07-10 15:40:08 +02:00
parent 7434033405
commit 3ee2b753e6
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -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")