272 |
{ |
{ |
273 |
if (!loglist || !loglist[i] || (strlen(loglist[i]) == 0)) |
if (!loglist || !loglist[i] || (strlen(loglist[i]) == 0)) |
274 |
break; |
break; |
275 |
if ((logs->len) > 0) |
if (logsfromprefs) |
276 |
{ |
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
277 |
if (logsfromprefs) |
loglist[i], ".xlog", NULL); |
|
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
|
|
loglist[i], ".xlog", NULL); |
|
|
else |
|
|
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
|
|
loglist[i], NULL); |
|
|
lp = log_file_open (xlogfile, TYPE_FLOG); |
|
|
} |
|
278 |
else |
else |
|
{ |
|
279 |
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
280 |
loglist[i], NULL); |
loglist[i], NULL); |
281 |
lp = log_file_open (xlogfile, TYPE_OLD_LOG); |
lp = log_file_open (xlogfile, TYPE_FLOG); |
|
} |
|
282 |
if (!lp) /* create a new log */ |
if (!lp) /* create a new log */ |
283 |
{ |
{ |
284 |
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, |
286 |
lp = log_file_create (xlogfile, TYPE_FLOG, qso_field_nr, qso_fields, |
lp = log_file_create (xlogfile, TYPE_FLOG, qso_field_nr, qso_fields, |
287 |
qso_widths); |
qso_widths); |
288 |
} |
} |
289 |
if (lp) |
else |
290 |
{ |
{ |
291 |
logwindow = openlog (lp, loglist[i], i); |
logwindow = openlog (lp, loglist[i], i); |
292 |
log_file_qso_foreach (lp, fillin_list, logwindow); |
log_file_qso_foreach (lp, fillin_list, logwindow); |