diff options
-rw-r--r-- | src/location/places/qplacecategory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/location/places/qplacecategory.cpp b/src/location/places/qplacecategory.cpp index 5629631a..64a75167 100644 --- a/src/location/places/qplacecategory.cpp +++ b/src/location/places/qplacecategory.cpp @@ -139,7 +139,9 @@ bool QPlaceCategory::operator==(const QPlaceCategory &other) const { return d->categoryId == other.d->categoryId && d->name == other.d->name && - d->visibility == other.d->visibility && + (d->visibility == QLocation::UnspecifiedVisibility || + other.d->visibility == QLocation::UnspecifiedVisibility || + d->visibility == other.d->visibility) && d->icon == other.d->icon; } |