]> err.no Git - mapper/commitdiff
Clear POI cache on add so the new POI gets drawn on the map.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 16:20:25 +0000 (18:20 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 16:20:25 +0000 (18:20 +0200)
src/poi-gui.c

index 309116a87a92f347395c27771a8221dd5f051c92..5edcf13d60fdc5554d6acc305c40531d8474826a 100644 (file)
@@ -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,