jonasbjurel / myRailIO

A model railway controller backend for signal masts-, sensors-, light effects-, actuators and more.
https://www.myrail.io
Apache License 2.0
0 stars 1 forks source link

When deleting a GUI Object MyRailIO server may crash #122

Closed jonasbjurel closed 1 month ago

jonasbjurel commented 1 month ago

Describe the bug When deleting a GUI Object MyRailIO server may crash.

To Reproduce Steps to reproduce the behavior: Delete a decoder- this may cause the crash. Add a new decoder - this is likely to create a crash.

It appears that we are working on an already removed standard item?

Expected behavior No crash

Screenshots File "C:\Users\jonas\OneDrive\Projects\ModelRailway\myRailIO\server\scripts\myRailIO\ui.py", line 118, in setColor self.setForeground(color) RuntimeError: wrapped C/C++ object of type StandardItem has been deleted

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

jonasbjurel commented 1 month ago

Fixed