diff options
author | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-10-19 15:39:32 +0300 |
---|---|---|
committer | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-10-19 15:39:32 +0300 |
commit | e9336b9b9e995f80190652ec00767f3d8f4b4e20 (patch) | |
tree | 3c37f1efe7ab73a897c86a57e4955c5887953874 /cura/CuraApplication.py | |
parent | d735921d42aa9ee1fdc6a5c8f31e5aae89bbdfc4 (diff) |
Small cleanups for discard or keep behavior - CURA-4447
Diffstat (limited to 'cura/CuraApplication.py')
-rwxr-xr-x | cura/CuraApplication.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 4b4f743a77..ce09346a34 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -409,12 +409,10 @@ class CuraApplication(QtApplication): @pyqtSlot(str) def discardOrKeepProfileChangesClosed(self, option): - self.getMachineManager().activeQualityChanged.emit() if option == "discard": global_stack = self.getGlobalContainerStack() for extruder in ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()): extruder.getTop().clear() - global_stack.getTop().clear() # if the user decided to keep settings then the user settings should be re-calculated and validated for errors @@ -423,7 +421,6 @@ class CuraApplication(QtApplication): global_stack = self.getGlobalContainerStack() for extruder in ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()): user_extruder_container = extruder.getTop() - if user_extruder_container: user_extruder_container.update() @@ -431,6 +428,9 @@ class CuraApplication(QtApplication): if user_global_container: user_global_container.update() + # notify listeners that quality has changed (after user selected discard or keep) + self.getMachineManager().activeQualityChanged.emit() + @pyqtSlot(int) def messageBoxClosed(self, button): if self._message_box_callback: |