From c658f2878b540407a65af8c57b3e1bb3cc7c78c4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 13 Jul 2015 15:14:46 -0300 Subject: Select right divesite on click Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'qt-ui/locationinformation.cpp') 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; } -- cgit v1.2.3-70-g09d2