mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Select right divesite on click
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ca5606d3e9
commit
c658f2878b
4 changed files with 49 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue