summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 02:04:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 11:19:27 -0800
commit0e6345f65b041b5005c75b83792ca98d8ef4f766 (patch)
treeb0ec0df52a744e579be05442cab5da61d2329774 /qt-ui/maintab.cpp
parent5c4d2660604af8925b757025571a8dcc36da1cdc (diff)
downloadsubsurface-0e6345f65b041b5005c75b83792ca98d8ef4f766.tar.gz
Correctly connect the maintab to dive site management
We now have a working uuid - use it. And populate the fields accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index ab691a4b4..b0c2009d3 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -214,10 +214,9 @@ MainTab::~MainTab()
}
void MainTab::prepareDiveSiteEdit() {
- //TODO: GET THE CORRECT DIVESITE UUID HERE
- QUuid id = QUuid::createUuid();
- emit requestDiveSiteEdit(id);
+ emit requestDiveSiteEdit(displayed_dive.dive_site_uuid);
}
+
void MainTab::toggleTriggeredColumn()
{
QAction *action = qobject_cast<QAction *>(sender());