From 5bd4713a89477e0b9bed32db66f65282fd3d25a3 Mon Sep 17 00:00:00 2001 From: sleske Date: Thu, 5 Jul 2012 20:40:15 +0000 Subject: Fix:core:Suppress bogus warning if bookmark.txt or destination.txt do not (yet) exist. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5183 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'navit/navit.c') diff --git a/navit/navit.c b/navit/navit.c index 1f818479..4af07bd2 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -1685,7 +1685,7 @@ navit_former_destinations_active(struct navit *this_) } struct map* read_former_destinations_from_file(){ - struct attr type, data, flags, *attrs[4]; + struct attr type, data, no_warn, flags, *attrs[5]; char *destination_file = bookmarks_get_destination_file(FALSE); struct map *m; @@ -1695,10 +1695,14 @@ struct map* read_former_destinations_from_file(){ data.type=attr_data; data.u.str=destination_file; + no_warn.type=attr_no_warning_if_map_file_missing; + no_warn.u.num=1; + flags.type=attr_flags; flags.u.num=1; - attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags; attrs[3]=NULL; + attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags; + attrs[3]=&no_warn; attrs[4]=NULL; m=map_new(NULL, attrs); g_free(destination_file); -- cgit v1.2.1