/[xlog]/xlog/src/main.c
ViewVC logotype

Diff of /xlog/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.52 by pa4tu, Mon Sep 20 19:38:42 2004 UTC revision 1.53 by pa4tu, Sat Sep 25 15:31:10 2004 UTC
# Line 272  main (int argc, char *argv[]) Line 272  main (int argc, char *argv[])
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,
# Line 295  main (int argc, char *argv[]) Line 286  main (int argc, char *argv[])
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);

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26