Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1df981d

Browse files
committedSep 14, 2024·
Fix broken compatibility with QGIS 3.18
1 parent 561f4cf commit 1df981d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎qfieldsync/gui/mapthemes_config_widget.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
***************************************************************************/
2222
"""
2323

24-
from qgis.core import Qgis
24+
from qgis.core import QgsMapLayerProxyModel
2525
from qgis.gui import QgsMapLayerComboBox
2626

2727
from qgis.PyQt.QtCore import Qt
@@ -61,7 +61,7 @@ def reload(self, configuration):
6161
cmb = QgsMapLayerComboBox()
6262
cmb.setAllowEmptyLayer(True)
6363
cmb.setProject(self.project)
64-
cmb.setFilters(Qgis.LayerFilter.VectorLayer)
64+
cmb.setFilters(QgsMapLayerProxyModel.VectorLayer)
6565
if map_theme in configuration:
6666
cmb.setLayer(self.project.mapLayer(configuration[map_theme]))
6767
self.setCellWidget(count, 1, cmb)

0 commit comments

Comments
 (0)
Please sign in to comment.