mbridak / not1mm

Not1MM != N1MM, An amateur radio contest logger for Linux.
GNU General Public License v3.0
105 stars 27 forks source link

If CAT set, then changed to None. crashes when band/mode selected. #153

Closed mbridak closed 2 months ago

mbridak commented 2 months ago

Crashes if CAT changed to None, then band/mode changed.

Traceback (most recent call last):
  File "/home/mbridak/Nextcloud/dev/not1mm/not1mm/__main__.py", line 327, in <lambda>
    self.ssb_band_12.mousePressEvent = lambda x: self.change_to_band_and_mode(12, "SSB")
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mbridak/Nextcloud/dev/not1mm/not1mm/__main__.py", line 745, in change_to_band_and_mode
    self.change_freq(freq)
  File "/home/mbridak/Nextcloud/dev/not1mm/not1mm/__main__.py", line 2908, in change_freq
    self.rig_control.set_vfo(vfo)
  File "/home/mbridak/Nextcloud/dev/not1mm/not1mm/radio.py", line 98, in set_vfo
    self.poll_callback.emit(
    ^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type Radio has been deleted