Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot open project configuration dialog with OpenLayers layer #61

Closed
noerw opened this issue Mar 2, 2018 · 0 comments
Closed

cannot open project configuration dialog with OpenLayers layer #61

noerw opened this issue Mar 2, 2018 · 0 comments

Comments

@noerw
Copy link

noerw commented Mar 2, 2018

When the project contains a layer from OpenLayers Plugin, the following exception is raised when opening the QField Project Configuration dialog:

AttributeError: 'OpenlayersLayer' object has no attribute 'dataProvider' 
Traceback (most recent call last):
  File "/home/kreis/.qgis2/python/plugins/qfieldsync/qfield_sync.py", line 268, in show_project_configuration_dialog
    dlg = ProjectConfigurationDialog(self.iface, self.iface.mainWindow())
  File "/home/kreis/.qgis2/python/plugins/qfieldsync/dialogs/project_configuration_dialog.py", line 59, in __init__
    self.reloadProject()
  File "/home/kreis/.qgis2/python/plugins/qfieldsync/dialogs/project_configuration_dialog.py", line 77, in reloadProject
    for action, description in layer_source.available_actions:
  File "/home/kreis/.qgis2/python/plugins/qfieldsync/core/layer.py", line 109, in available_actions
    if self.is_file:
  File "/home/kreis/.qgis2/python/plugins/qfieldsync/core/layer.py", line 100, in is_file
    elif os.path.isfile(QgsDataSourceURI(self.layer.dataProvider().dataSourceUri()).database()):
AttributeError: 'OpenlayersLayer' object has no attribute 'dataProvider'

Maybe you could fix it with a layer black list, similar to qgis2web plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant