@@ -695,7 +695,9 @@ def __init__(self, splash):
695695 if self .rotator_window is not None :
696696 self .rotator_window .set_mygrid (self .station .get ("GridSquare" , "" ))
697697 self .contact = self .database .empty_contact .copy ()
698- self .previous_contact = self .contact # Keep previous contact, if any, so we can spot it.
698+ self .previous_contact = (
699+ self .contact
700+ ) # Keep previous contact, if any, so we can spot it.
699701 self .current_op = self .station .get ("Call" , "" )
700702 self .voice_process .current_op = self .current_op
701703 self .make_op_dir ()
@@ -1258,13 +1260,16 @@ def dockwidget_message(self, msg):
12581260 except OSError as err :
12591261 logging .warning ("%s" , err )
12601262
1261- if msg .get ("cmd" , "" ) in ["CONTACTCHANGED" , "DELETED" ]:
1263+ # TODO
1264+ if msg .get ("cmd" , "" ) in ["CONTACTCHANGED" , "DELETE" , "DELETED" ]:
12621265 if self .statistics_window :
12631266 self .statistics_window .msg_from_main (msg )
12641267 if self .dxcc_window :
12651268 self .dxcc_window .msg_from_main (msg )
12661269 if self .zone_window :
12671270 self .zone_window .msg_from_main (msg )
1271+ if self .rate_window :
1272+ self .rate_window .msg_from_main (msg )
12681273 self .check_dupe (self .callsign .text ())
12691274
12701275 if msg .get ("cmd" , "" ) == "GETCOLUMNS" :
@@ -2626,16 +2631,12 @@ def spot_dx(self):
26262631 freq = self .radio_state .get ("vfoa" )
26272632 dx = self .callsign .text ()
26282633 if freq and dx :
2629- cmd = {
2630- "cmd" : "SPOTDX" ,
2631- "dx" : dx ,
2632- "freq" : float (int (freq ) / 1000 )
2633- }
2634+ cmd = {"cmd" : "SPOTDX" , "dx" : dx , "freq" : float (int (freq ) / 1000 )}
26342635 elif self .previous_contact ["Call" ] and self .previous_contact ["Freq" ]:
26352636 cmd = {
26362637 "cmd" : "SPOTDX" ,
26372638 "dx" : self .previous_contact ["Call" ],
2638- "freq" : self .previous_contact ["Freq" ]
2639+ "freq" : self .previous_contact ["Freq" ],
26392640 }
26402641 else :
26412642 cmd = None
@@ -3164,6 +3165,8 @@ def save_contact(self) -> None:
31643165 self .dxcc_window .msg_from_main (cmd )
31653166 if self .zone_window :
31663167 self .zone_window .msg_from_main (cmd )
3168+ if self .rate_window :
3169+ self .rate_window .msg_from_main (cmd )
31673170
31683171 def update_rtc_xml (self ):
31693172 """Update RTC XML"""
@@ -3772,12 +3775,6 @@ def readpreferences(self) -> None:
37723775 self .pref .get ("CAT_ip" , "127.0.0.1" ),
37733776 int (self .pref .get ("CAT_port" , 12345 )),
37743777 )
3775- # self.rig_control.delta = int(self.pref.get("CAT_polldelta", 555))
3776- # self.rig_control.moveToThread(self.radio_thread)
3777- # self.radio_thread.started.connect(self.rig_control.run)
3778- # self.radio_thread.finished.connect(self.rig_control.deleteLater)
3779- # self.rig_control.poll_callback.connect(self.poll_radio)
3780- # self.radio_thread.start()
37813778
37823779 elif self .pref .get ("userigctld" , False ) is True :
37833780 logger .debug (
@@ -3789,12 +3786,7 @@ def readpreferences(self) -> None:
37893786 self .pref .get ("CAT_ip" , "127.0.0.1" ),
37903787 int (self .pref .get ("CAT_port" , 4532 )),
37913788 )
3792- # self.rig_control.delta = int(self.pref.get("CAT_polldelta", 555))
3793- # self.rig_control.moveToThread(self.radio_thread)
3794- # self.radio_thread.started.connect(self.rig_control.run)
3795- # self.radio_thread.finished.connect(self.rig_control.deleteLater)
3796- # self.rig_control.poll_callback.connect(self.poll_radio)
3797- # self.radio_thread.start()
3789+
37983790 else :
37993791 self .rig_control = Radio (
38003792 "fake" ,
0 commit comments