mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
68691c9d6d
commit
d769c6016f
3 changed files with 17 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue