Fix crash when clearing build plate

We shouldn't delete the singleton PrintInformation object. We should rather just zero out the print information. And instead of doing that explicitly in deleteAll, listen to scene changes from PrintInformation in order to keep the logic related to the print information contained within its class.

Contributes to issue CURA-4810.
This commit is contained in:
Ghostkeeper 2018-01-16 13:43:28 +01:00
parent 51b49c89f4
commit f948203a63
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
2 changed files with 3 additions and 5 deletions

View file

@ -1061,9 +1061,6 @@ class CuraApplication(QtApplication):
op.push()
Selection.clear()
Logger.log("i", "Reseting print information")
self._print_information = PrintInformation.PrintInformation()
# stay on the same build plate
#self.getCuraSceneController().setActiveBuildPlate(0) # Select first build plate