From: Kaj-Michael Lang Date: Mon, 4 Feb 2008 12:35:49 +0000 (+0200) Subject: Add a track note when adding quick POIs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6abea819e3bb2ba0fe35665215b8735a33f81dd9;p=mapper Add a track note when adding quick POIs --- diff --git a/src/poi-gui.c b/src/poi-gui.c index 9c0ea3d..33e4f03 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -992,9 +992,15 @@ p->desc=g_strdup("Quick POI, update information please."); if (poi_add(p)==FALSE) { popup_error(_window, _("Problem adding POI")); } else { + gchar *txt; + map_poi_cache_clear(); map_force_redraw(); gtk_widget_destroy(qp.dialog); + + /* Add a text break to the current track */ + txt=g_strdup_printf("QP: %f %f %s", p->lat, p->lon, p->label); + track_insert_mark_text(txt); } poi_free(p);