mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
UI restructure: plotDive: plot current dive by default & use displayed_dive
No longer use the dive structure that is passed in but instead always use the displayed_dive to display things. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cd65c8512d
commit
2a55e55868
4 changed files with 27 additions and 24 deletions
|
@ -175,7 +175,7 @@ void MainWindow::current_dive_changed(int divenr)
|
|||
select_dive(divenr);
|
||||
ui.globe->centerOnCurrentDive();
|
||||
}
|
||||
ui.newProfile->plotDive(current_dive);
|
||||
ui.newProfile->plotDive();
|
||||
ui.InfoWidget->updateDiveInfo(divenr);
|
||||
}
|
||||
|
||||
|
@ -650,7 +650,7 @@ void MainWindow::on_actionPreviousDC_triggered()
|
|||
{
|
||||
unsigned nrdc = number_of_computers(current_dive);
|
||||
dc_number = (dc_number + nrdc - 1) % nrdc;
|
||||
ui.newProfile->plotDive(current_dive);
|
||||
ui.newProfile->plotDive();
|
||||
ui.InfoWidget->updateDiveInfo(selected_dive);
|
||||
}
|
||||
|
||||
|
@ -658,7 +658,7 @@ void MainWindow::on_actionNextDC_triggered()
|
|||
{
|
||||
unsigned nrdc = number_of_computers(current_dive);
|
||||
dc_number = (dc_number + 1) % nrdc;
|
||||
ui.newProfile->plotDive(current_dive);
|
||||
ui.newProfile->plotDive();
|
||||
ui.InfoWidget->updateDiveInfo(selected_dive);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue