]> git.street.me.uk Git - andy/viking.git/blobdiff - src/acquire.c
Remove zoom combobox in toolbar
[andy/viking.git] / src / acquire.c
index 5449155d5ef3c442a10f51a04b0d688a19737a01..04c101dcee3c1da9c5d6bb7d82097a8c7897a688 100644 (file)
@@ -361,6 +361,13 @@ static void acquire ( VikWindow *vw, VikLayersPanel *vlp, VikViewport *vvp, VikD
       wi->creating_new_layer = FALSE;
     }
   }
+  else if ( source_interface->mode == VIK_DATASOURCE_MANUAL_LAYER_MANAGEMENT ) {
+    // Don't create in acquire - as datasource will perform the necessary actions
+    wi->creating_new_layer = FALSE;
+    VikLayer *current_selected = vik_layers_panel_get_selected ( w->vlp );
+    if ( IS_VIK_TRW_LAYER(current_selected) )
+      wi->vtl = VIK_TRW_LAYER(current_selected);
+  }
   if ( wi->creating_new_layer ) {
     wi->vtl = VIK_TRW_LAYER ( vik_layer_create ( VIK_LAYER_TRW, w->vvp, NULL, FALSE ) );
     vik_layer_rename ( VIK_LAYER ( wi->vtl ), _(source_interface->layer_title) );