diff --git a/qfieldsync/gui/mapthemes_config_widget.py b/qfieldsync/gui/mapthemes_config_widget.py index 76c6cc33..0ba72ca1 100644 --- a/qfieldsync/gui/mapthemes_config_widget.py +++ b/qfieldsync/gui/mapthemes_config_widget.py @@ -21,7 +21,7 @@ ***************************************************************************/ """ -from qgis.core import Qgis +from qgis.core import QgsMapLayerProxyModel from qgis.gui import QgsMapLayerComboBox from qgis.PyQt.QtCore import Qt @@ -61,7 +61,7 @@ def reload(self, configuration): cmb = QgsMapLayerComboBox() cmb.setAllowEmptyLayer(True) cmb.setProject(self.project) - cmb.setFilters(Qgis.LayerFilter.VectorLayer) + cmb.setFilters(QgsMapLayerProxyModel.VectorLayer) if map_theme in configuration: cmb.setLayer(self.project.mapLayer(configuration[map_theme])) self.setCellWidget(count, 1, cmb)