mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
CURA-4525 fix deleting last item
This commit is contained in:
parent
c1cb86a334
commit
584f477b54
1 changed files with 3 additions and 2 deletions
|
@ -45,6 +45,7 @@ class CuraSceneController(QObject):
|
||||||
build_plate_number = 0
|
build_plate_number = 0
|
||||||
if self._last_selected_index >= 0: # go to the buildplate of the item you last selected
|
if self._last_selected_index >= 0: # go to the buildplate of the item you last selected
|
||||||
item = self._objects_model.getItem(self._last_selected_index)
|
item = self._objects_model.getItem(self._last_selected_index)
|
||||||
|
if "node" in item:
|
||||||
node = item["node"]
|
node = item["node"]
|
||||||
build_plate_number = node.callDecoration("getBuildPlateNumber")
|
build_plate_number = node.callDecoration("getBuildPlateNumber")
|
||||||
self.setActiveBuildPlate(build_plate_number)
|
self.setActiveBuildPlate(build_plate_number)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue