diff options
-rw-r--r-- | qt-models/filtermodels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 1d6830ee0..ce0c2528c 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -592,7 +592,7 @@ bool MultiFilterSortModel::showDive(const struct dive *d) const dive_site *ds = d->dive_site; if (!ds) return false; - return same_string(ds->name, curr_dive_site->name) || ds->uuid == curr_dive_site->uuid; + return ds == curr_dive_site || same_string(ds->name, curr_dive_site->name); } if (models.isEmpty()) |