Editing frequency

2 posts / 0 new
Last post
ZL2APV
Editing frequency

This is not strictly a bug but a behaviour which I think could be improved. It will only occur with logs not linked to your radio's frequency data via serial cable or udp connection.

With more precision allowed with the frequency it may contain enough digits that the significant number scrolls out of the left hand side of the edit box leaving only the decimal point showing.

If you wish to edit the frequency the normal action is to double click the number and enter the correct one but with the significant number hidden it is not noticed that a double click only selects the decimal portion (numbers to the right of the decimal point) and entering the new frequency like 14.22 would actually now have in the edit box 14.14.22 which is of course an invalid float but is hidden from the user with the first significant 14 scrolled out of view to the left.

Striking the ENTER key to post the record results in a message box with
---------------------------------------------
14.14.22" is an invalid float.

Press OK to ignore and risk data corruption.
Press Cancel to kill the program.
---------------------------------------------
For someone who is very cautious of their data (and I guess all of us are) the reaction is to click on Cancel and have their program shut down without the record being saved. Of course when you go to re-enter it having recovered from the shock you can't remember the callsign or something like that.

If you click on OK then you are taken back to the frequency edit box and given an opportunity to fix the number and of course you can't post the record until it is valid which is the desired behaviour. The message box may be better worded as follows:
---------------------------------------------
14.14.22" is an invalid float.

Please re-enter your frequency.
---------------------------------------------
Only an "OK" button would need to be displayed.

I am sure people would want to do this rather than crashing out of their log with the record lost.

If you want to cancel the record you can do it in the usual way once you are back to the frequency edit box and the incorrect float should be automatically replaced with the basic band frequency e.g. 14.000 or better still the last valid frequency for the band.

73 Graeme ZL2APV

ok2cqr
ok2cqr's picture
Re: Editing frequency

Hi Graeme,

I'll fix that bug. Thank you for bugreport!

73 Petr, OK2CQR