[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tlf-devel] wpx bug report
From: |
Joop Stakenborg |
Subject: |
Re: [Tlf-devel] wpx bug report |
Date: |
Tue, 01 Jun 2004 20:31:08 +0200 |
User-agent: |
Mozilla Thunderbird 0.6 (X11/20040528) |
Federico J. Baldi LU4HKN wrote:
* If I write a note, then exit tlf , then start again, it
dont actualize the qso number:
20CW 29-May-04 21:58 0049 HG1S 599 599 1600 HG1 3
20CW 29-May-04 22:01 0050 UT0AZA 599 599 1453 UT0 3
; Node me parece que me loggeo mal .
20CW 29-May-04 22:05 0050 BORRAR 599 599 BORRAR0 3
where "BORRAR" means DELETE in spanish.
Here is another patch which fixes this. The QSO number is now
incremented on startup when the last line in the log is a comment.
Regards,
Joop PG4I
diff -u -r tlf-0.9.18/src/globalvars.h tlf-0.9.18.fixed/src/globalvars.h
--- tlf-0.9.18/src/globalvars.h 2004-04-26 14:30:46.000000000 +0200
+++ tlf-0.9.18.fixed/src/globalvars.h 2004-06-01 20:13:10.000000000 +0200
@@ -19,6 +19,7 @@
extern int bandinx; // band we're currently working on
extern char logfile[];
+extern int startflag;
extern int contest;
extern int cqww;
extern int arrldx_usa;
diff -u -r tlf-0.9.18/src/main.c tlf-0.9.18.fixed/src/main.c
--- tlf-0.9.18/src/main.c 2004-05-07 14:44:30.000000000 +0200
+++ tlf-0.9.18.fixed/src/main.c 2004-06-01 20:13:18.000000000 +0200
@@ -132,6 +132,7 @@
char tlfversion[80] = "";
char multiplierlist[40]="";
+ int startflag = 0;
int timeoffset=0;
int multi = 0; /* 0 = SO , 1 = MOST, 2 = MM */
int trxmode = CWMODE;
diff -u -r tlf-0.9.18/src/scroll_log.c tlf-0.9.18.fixed/src/scroll_log.c
--- tlf-0.9.18/src/scroll_log.c 2004-04-26 14:30:46.000000000 +0200
+++ tlf-0.9.18.fixed/src/scroll_log.c 2004-06-01 20:16:00.000000000 +0200
@@ -132,8 +132,11 @@
}
} else qsonum = atoi(qsonrstr);
- if (logline4[0] != ';')
+ if (!startflag || logline4[0] != ';')
+ {
+ startflag = 1;
qsonum++;
+ }
// if((qsonum > highqsonr) && (lan_mutex == 2)) highqsonr++;