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):
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