Diff of /trunk/src/gconf.c

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

revision 103 by harbaum, Wed Sep 9 11:50:50 2009 UTC revision 113 by harbaum, Wed Sep 16 13:45:10 2009 UTC
# Line 236  void gconf_load_state(appdata_t *appdata Line 236  void gconf_load_state(appdata_t *appdata
236            /* restoring the gpx file failed, mark it as unusable, but save */            /* restoring the gpx file failed, mark it as unusable, but save */
237            /* its presence for later use */            /* its presence for later use */
238    
239            /* create fake entry to remember this file for next load attempt */            /* create "closed" entry to remember this file for next */
240              /* load attempt */
241            *gpx = g_new0(gpx_t, 1);            *gpx = g_new0(gpx_t, 1);
242            (*gpx)->filename = fname;            (*gpx)->filename = fname;
243            (*gpx)->failed = TRUE;            char *p = fname;
244              if(strrchr(fname, '/'))
245                p = strrchr(fname, '/')+1;
246    
247              (*gpx)->name = g_strdup_printf(_("Failed to load: %s"), p);
248              (*gpx)->closed = TRUE;
249          } else          } else
250            free(fname);            free(fname);
251        }        }

Legend:
Removed from v.103  
changed lines
  Added in v.113