diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-10-03 21:12:06 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-10-03 21:34:54 +0000 |
commit | f9a1c4a18a3421617e28d2c26d30b011d22a0229 (patch) | |
tree | 945c7a5e8d547826b88ad094c115dda6250815e9 /src/location | |
parent | 8a7bde9b93208259de65d6b1aef21d21b495b6d7 (diff) | |
download | qtlocation-f9a1c4a18a3421617e28d2c26d30b011d22a0229.tar.gz |
Amend 8a7bde9b93 to correctly account for the UnspecifiedVisibility case
Change-Id: I3813b65b18877f5030aea4511ca7cb850874d7c7
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/places/qplacecategory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/places/qplacecategory.cpp b/src/location/places/qplacecategory.cpp index 1ad70dab..64a75167 100644 --- a/src/location/places/qplacecategory.cpp +++ b/src/location/places/qplacecategory.cpp @@ -139,8 +139,8 @@ bool QPlaceCategory::operator==(const QPlaceCategory &other) const { return d->categoryId == other.d->categoryId && d->name == other.d->name && - (d->visibility != QLocation::UnspecifiedVisibility || - other.d->visibility != QLocation::UnspecifiedVisibility || + (d->visibility == QLocation::UnspecifiedVisibility || + other.d->visibility == QLocation::UnspecifiedVisibility || d->visibility == other.d->visibility) && d->icon == other.d->icon; } |