summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-07-13 15:14:46 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 15:43:03 -0700
commitc658f2878b540407a65af8c57b3e1bb3cc7c78c4 (patch)
tree9a1d56975d4d823d43f663679c05177eb07f633b /qt-ui/locationinformation.cpp
parentca5606d3e9783edbd3012684eff1a829088870b5 (diff)
downloadsubsurface-c658f2878b540407a65af8c57b3e1bb3cc7c78c4.tar.gz
Select right divesite on click
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.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 0be4b1e65..b9d985bd7 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -332,7 +332,8 @@ bool LocationManagementEditHelper::eventFilter(QObject *obj, QEvent *ev)
return false;
if(ev->type() == QEvent::Show) {
- last_uuid = displayed_dive_site.uuid;
+ last_uuid = 0;
+ qDebug() << "EventFilter: " << last_uuid;
}
if(ev->type() == QEvent::KeyPress) {
@@ -356,5 +357,10 @@ void LocationManagementEditHelper::handleActivation(const QModelIndex& activated
}
void LocationManagementEditHelper::resetDiveSiteUuid() {
- last_uuid = displayed_dive_site.uuid;
+ last_uuid = 0;
+ qDebug() << "Reset: " << last_uuid;
+}
+
+uint32_t LocationManagementEditHelper::diveSiteUuid() const {
+ return last_uuid;
}