diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-06-01 16:29:38 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-01 13:14:24 -0700 |
commit | 82d3f088a40545624f0d1ac61ca990e05325081c (patch) | |
tree | af92a082bc655a569e57579e7c66538737af4ce9 /qt-ui/mainwindow.cpp | |
parent | b9a32343711008f8db4fb6d26fafe85698161052 (diff) | |
download | subsurface-82d3f088a40545624f0d1ac61ca990e05325081c.tar.gz |
Manage Dive Site from the MainMenu
Trigger the ManageDiveSite from the MainMenu.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c0c65bd99..9fa1a81d1 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -211,6 +211,10 @@ LocationInformationWidget *MainWindow::locationInformationWidget() { return qobject_cast<LocationInformationWidget*>(applicationState["EditDiveSite"].topLeft); } +void MainWindow::on_actionManage_dive_sites_triggered() { + enableDiveSiteEdit(displayed_dive.dive_site_uuid); +} + void MainWindow::enableDiveSiteEdit(uint32_t id) { locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid); setApplicationState("EditDiveSite"); |