mirror of
https://github.com/ok2cqr/cqrlog.git
synced 2024-09-21 10:27:17 +00:00
Fixed bug where rig was not initialized at startup if TRXConrol window stayed closed.
Problem was variable "riginuse" that was undefined at opendatabase called initializerig procedure.
This commit is contained in:
parent
4f59d7e6c4
commit
03e196a032
@ -425,9 +425,9 @@ begin
|
|||||||
LoadBandButtons;
|
LoadBandButtons;
|
||||||
dmUtils.LoadWindowPos(frmTRXControl);
|
dmUtils.LoadWindowPos(frmTRXControl);
|
||||||
cmbRigGetItems(nil);
|
cmbRigGetItems(nil);
|
||||||
|
//These two are needed here othewise rig selector has "None" even if rig is initialized at startup
|
||||||
cmbRig.ItemIndex:=StrToInt(cqrini.ReadString('TRX', 'RigInUse', '1'));
|
cmbRig.ItemIndex:=StrToInt(cqrini.ReadString('TRX', 'RigInUse', '1'));
|
||||||
cmbRigCloseUp(nil); //defaults rig 1 in case of undefined
|
cmbRigCloseUp(nil); //defaults rig 1 in case of undefined
|
||||||
cmbRigChange(nil); //inits rig
|
|
||||||
old_mode := '';
|
old_mode := '';
|
||||||
MemRelated := cqrini.ReadBool('TRX', 'MemModeRelated', False);
|
MemRelated := cqrini.ReadBool('TRX', 'MemModeRelated', False);
|
||||||
gbInfo.Visible := cqrini.ReadBool('TRX', 'MemShowInfo', gbInfo.Visible);
|
gbInfo.Visible := cqrini.ReadBool('TRX', 'MemShowInfo', gbInfo.Visible);
|
||||||
@ -1017,6 +1017,9 @@ procedure TfrmTRXControl.FormCreate(Sender : TObject);
|
|||||||
begin
|
begin
|
||||||
Radio := nil;
|
Radio := nil;
|
||||||
AutoMode := True;
|
AutoMode := True;
|
||||||
|
//these are needed here otherwise rig init at startup, if TRXControl window stays closed, fails
|
||||||
|
cmbRig.ItemIndex:=StrToInt(cqrini.ReadString('TRX', 'RigInUse', '1'));
|
||||||
|
cmbRigCloseUp(nil); //defaults rig 1 in case of undefined
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmTRXControl.FormDestroy(Sender : TObject);
|
procedure TfrmTRXControl.FormDestroy(Sender : TObject);
|
||||||
|
@ -21,7 +21,7 @@ const
|
|||||||
cRELEAS = 0;
|
cRELEAS = 0;
|
||||||
cBUILD = 1;
|
cBUILD = 1;
|
||||||
|
|
||||||
cBUILD_DATE = '2022-11-28';
|
cBUILD_DATE = '2022-12-07';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user