mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Sort dive table after adding a dive
The dive might not be the newest dive in the dive list. Fixes #637 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
67e20fb272
commit
95466cb245
1 changed files with 2 additions and 1 deletions
|
@ -750,6 +750,7 @@ void MainTab::acceptChanges()
|
|||
// now let's resort the dive list and make sure the newly added dive is still selected
|
||||
selected_dive = -1;
|
||||
amount_selected = 0;
|
||||
sort_table(&dive_table);
|
||||
MainWindow::instance()->dive_list()->reload(DiveTripModel::CURRENT, true);
|
||||
int newDiveNr = get_divenr(get_dive_by_uniq_id(addedId));
|
||||
MainWindow::instance()->dive_list()->selectDive(newDiveNr, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue