diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-10-09 14:33:31 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-09 10:50:51 -0700 |
commit | d611d97406b538eac9ce0df81caee5c6a6ca6b8e (patch) | |
tree | 5440dc601e1c3b94acc3ecd4e8e73d65786cc233 | |
parent | e500a9dea87a9bb61e7b320bb1ae59206ae2fb8e (diff) | |
download | subsurface-d611d97406b538eac9ce0df81caee5c6a6ca6b8e.tar.gz |
Do not show lack of coordinates as having same gps information
The filter that takes care to show the dive sites that have the
same gps information should not take into account dives that have
no gps information.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-models/divelocationmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 6e1bbaadb..e7c9aa30d 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -198,5 +198,8 @@ bool filter_same_gps_cb (QAbstractItemModel *model, int sourceRow, const QModelI if (!ds) return false; + if (ds->latitude.udeg == 0 || ds->longitude.udeg == 0) + return false; + return (ds->latitude.udeg == ref_lat && ds->longitude.udeg == ref_lon && ds->uuid != ref_uuid); }
\ No newline at end of file |