aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index da0ec7337..452c49b8d 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -193,14 +193,11 @@ void MapLocationModel::reload(QObject *map)
endResetModel();
}
-void MapLocationModel::setSelected(struct dive_site *ds, bool fromClick)
+void MapLocationModel::setSelected(struct dive_site *ds)
{
m_selectedDs.clear();
- if (!ds)
- return;
- m_selectedDs.append(ds);
- if (fromClick)
- emit selectedLocationChanged(getMapLocation(ds));
+ if (ds)
+ m_selectedDs.append(ds);
}
bool MapLocationModel::isSelected(const QVariant &dsVariant) const