Merge pull request #533 from zjosua/taglimit-quotes

Use double quotes in taglimit queries
This commit is contained in:
Damien Elmes 2020-03-30 21:44:33 +10:00 committed by GitHub
commit cb5b122c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,12 +93,12 @@ class TagLimit(QDialog):
if yes:
arr = []
for req in yes:
arr.append("tag:'%s'" % req)
arr.append('tag:"%s"' % req)
self.tags += "(" + " or ".join(arr) + ")"
if no:
arr = []
for req in no:
arr.append("-tag:'%s'" % req)
arr.append('-tag:"%s"' % req)
self.tags += " " + " ".join(arr)
saveGeom(self, "tagLimit")
QDialog.accept(self)