diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-02-11 14:53:02 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-11 16:34:02 -0800 |
commit | d769c6016fb9fd484cfee90aa58eaac67f0d536a (patch) | |
tree | 07ff7f209b9bd77d2bd6caab8f56f958d57f45cb /qt-ui/mainwindow.cpp | |
parent | 68691c9d6d05ba28c8e0e8c837dcd32bb2eec42c (diff) | |
download | subsurface-d769c6016fb9fd484cfee90aa58eaac67f0d536a.tar.gz |
Copy the name and the coords when entering the EditDiveSite state
Name and coords of the current dive are copied to the edit dive site
screen.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 51b0353be..a83d0903a 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -215,6 +215,8 @@ LocationInformationWidget *MainWindow::locationInformationWidget() { } void MainWindow::enableDiveSiteEdit() { + locationInformationWidget()->setLocationName(current_dive->location); + locationInformationWidget()->setLocationCoords(printGPSCoords(current_dive->latitude.udeg, current_dive->longitude.udeg)); setApplicationState("EditDiveSite"); } |