planetfederal / qgis-geogig-plugin

A plugin to manage and use GeoGig repositories from QGIS
GNU General Public License v2.0
9 stars 8 forks source link

No GeoGig menu in the layer context menu when layer added before plugin activation #12

Closed alexbruy closed 8 years ago

alexbruy commented 8 years ago

To reproduce:

  1. Ensure that GeoGig plugin is deactivated
  2. Create new project in QGIS and add vector layer to it
  3. Activate GeoGig plugin
  4. Open layer context (right-click) menu. There are no GeoGig submenu here.

This is a bit confusing, we even may have situation when some layers will have GeoGig menu and others without it. It is necessary to introduce some check in plugin initialization code: if there are layers in project — loop over them and add menu entries if necessary.