Skip to content

Commit

Permalink
Merge pull request #150 from opengisch/m-kuhn-patch-1
Browse files Browse the repository at this point in the history
Fix exception on warning
  • Loading branch information
signedav authored May 28, 2020
2 parents 56b6eba + 6f3057d commit fe06d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qfieldsync/core/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def is_supported(self):

@property
def warning(self):
if self.layer.source().endswith('jp2', 'jpx'):
if self.layer.source().endswith(('jp2', 'jpx')):
return QCoreApplication.translate('DataSourceWarning',
'JPEG2000 layers are not supported by QField.<br>You can rasterize '
'them as basemap.'
Expand Down

0 comments on commit fe06d3c

Please sign in to comment.