From 63ddfccd52d127a234e0e4325d19d8e8e1121874 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 2 Sep 2015 11:23:09 +0200 Subject: [PATCH] updated cura application to new API --- cura/CuraApplication.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 7196d79f15..dc664fe9ff 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -398,18 +398,18 @@ class CuraApplication(QtApplication): @pyqtSlot(str, result = "QVariant") def getSettingValue(self, key): - if not self.getMachineManager().getActiveMachineInstance(): + if not self.getMachineManager().getActiveProfile(): return None - - return self.getActiveMachine().getSettingValueByKey(key) + return self.getMachineManager().getActiveProfile().getSettingValueByKey(key) + #return self.getActiveMachine().getSettingValueByKey(key) ## Change setting by key value pair @pyqtSlot(str, "QVariant") def setSettingValue(self, key, value): - if not self.getActiveMachine(): + if not self.getMachineManager().getActiveProfile(): return - self.getActiveMachine().setSettingValueByKey(key, value) + self.getMachineManager().getActiveProfile().getSettingValueByKey(key, value) @pyqtSlot() def mergeSelected(self):