diff options
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; } |