+
+ // This must be done inside the main thread as the uniquify causes screen updates
+ // (originally performed this nearer the point of upload in the thread)
+ if ( dir == GPS_UP ) {
+ // Enforce unique names in the layer upload to the GPS device
+ // NB this may only be a Garmin device restriction (and may be not every Garmin device either...)
+ // Thus this maintains the older code in built restriction
+ if ( ! vik_trw_layer_uniquify ( sess->vtl, vlp ) )
+ vik_statusbar_set_message ( vik_window_get_statusbar (VIK_WINDOW(VIK_GTK_WINDOW_FROM_LAYER(sess->vtl))), VIK_STATUSBAR_INFO,
+ _("Warning - GPS Upload items may overwrite each other") );
+ }
+