Skip to content

Commit

Permalink
Fix exception on warning
Browse files Browse the repository at this point in the history
Fixes #149
  • Loading branch information
m-kuhn authored May 28, 2020
1 parent 56b6eba commit 6f3057d
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 6f3057d

Please sign in to comment.