mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create a new DiveSite when user clicks on add
Also reorganized a bit of the code, and renamed a few misleading methods. [Dirk Hohndel: remove some C++11 code] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
82d3f088a4
commit
b8092c07a4
7 changed files with 44 additions and 23 deletions
|
@ -216,7 +216,7 @@ void MainWindow::on_actionManage_dive_sites_triggered() {
|
|||
}
|
||||
|
||||
void MainWindow::enableDiveSiteEdit(uint32_t id) {
|
||||
locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid);
|
||||
locationInformationWidget()->setCurrentDiveSiteByUuid(id);
|
||||
setApplicationState("EditDiveSite");
|
||||
}
|
||||
|
||||
|
@ -404,7 +404,7 @@ void MainWindow::cleanUpEmpty()
|
|||
information()->updateDiveInfo(true);
|
||||
graphics()->setEmptyState();
|
||||
dive_list()->reload(DiveTripModel::TREE);
|
||||
locationInformationWidget()->setLocationId(0);
|
||||
locationInformationWidget()->setCurrentDiveSiteByUuid(0);
|
||||
globe()->reload();
|
||||
if (!existing_filename)
|
||||
setTitle(MWTF_DEFAULT);
|
||||
|
@ -632,7 +632,7 @@ void MainWindow::setupForAddAndPlan(const char *model)
|
|||
// setup the dive cylinders
|
||||
DivePlannerPointsModel::instance()->clear();
|
||||
DivePlannerPointsModel::instance()->setupCylinders();
|
||||
locationInformationWidget()->setLocationId(0);
|
||||
locationInformationWidget()->setCurrentDiveSiteByUuid(0);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionReplanDive_triggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue