summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-06-01 16:58:23 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-01 13:24:37 -0700
commitb8092c07a4b4d7715d825641e458be5fa56972d6 (patch)
tree81d7604b2f53fe234d83a09a3645616a681e9ba1 /qt-ui/locationinformation.cpp
parent82d3f088a40545624f0d1ac61ca990e05325081c (diff)
downloadsubsurface-b8092c07a4b4d7715d825641e458be5fa56972d6.tar.gz
Create a new DiveSite when user clicks on add
Also reorganized a bit of the code, and renamed a few misleading methods. [Dirk Hohndel: remove some C++11 code] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 699b80d47..b6c4f7fa9 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -34,16 +34,16 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo
connect(this, SIGNAL(stopFilterDiveSite()), MultiFilterSortModel::instance(), SLOT(stopFilterDiveSite()));
}
-void LocationInformationWidget::setCurrentDiveSite(int dive_nr)
+void LocationInformationWidget::setCurrentDiveSiteByIndex(int dive_nr)
{
currentDs = get_dive_site(dive_nr);
if (currentDs)
- setLocationId(currentDs->uuid);
+ setCurrentDiveSiteByUuid(currentDs->uuid);
else
- setLocationId(displayed_dive.dive_site_uuid);
+ setCurrentDiveSiteByUuid(displayed_dive.dive_site_uuid);
}
-void LocationInformationWidget::setLocationId(uint32_t uuid)
+void LocationInformationWidget::setCurrentDiveSiteByUuid(uint32_t uuid)
{
currentDs = get_dive_site_by_uuid(uuid);
if(!currentDs)