From: Kaj-Michael Lang Date: Thu, 10 Jan 2008 16:20:25 +0000 (+0200) Subject: Clear POI cache on add so the new POI gets drawn on the map. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5384fa0c900c3d64c022eaff90473e37e0030b10;p=mapper Clear POI cache on add so the new POI gets drawn on the map. --- diff --git a/src/poi-gui.c b/src/poi-gui.c index 309116a..5edcf13 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -908,6 +908,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) { if (poi_update(poi)==FALSE) { popup_error(_window, _("Problem updating POI")); } else { + map_poi_cache_clear(); map_render_data(); } } else { @@ -954,6 +955,7 @@ p->desc=g_strdup("Quick POI, update information please."); if (poi_add(p)==FALSE) { popup_error(_window, _("Problem adding POI")); } else { + map_poi_cache_clear(); map_render_data(); gtk_widget_destroy(qp.dialog); } @@ -972,7 +974,7 @@ guint x,y; qp.lat=lat; qp.lon=lon; -qp.dialog = gtk_dialog_new_with_buttons(_("Quick POI"), +qp.dialog=gtk_dialog_new_with_buttons(_("Quick POI"), GTK_WINDOW(_window), GTK_DIALOG_MODAL, GTK_STOCK_CANCEL,