kopia lustrzana https://github.com/jamescoxon/dl-fldigi
ADIF import
Relaxed the test for accepting adi/adif file as valid ADIF
too many other logbook programs not in compliance.
Minimal test is for file to contain at least one adif field
as "<call:", case insignificant
pull/2/head
rodzic
dbfc72f6e9
commit
495ac85df0
|
|
@ -130,7 +130,8 @@ void cAdifIO::readFile (const char *fname, cQsoDb *db) {
|
|||
fread (buff, filesize, 1, adiFile);
|
||||
fclose (adiFile);
|
||||
|
||||
if (filesize == 0 || (strstr( buff, "<ADIF_VER")) == 0) {
|
||||
// relaxed file integrity test to all importing from non conforming log programs
|
||||
if (filesize == 0 || (strcasestr( buff, "<CALL:")) == 0) { //"<ADIF_VER")) == 0) {
|
||||
fl_message("Not an ADIF log file");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue