mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
When replanning logged dive call CylindersModel->updateDive
reset_cylinder may transform unused cylinders into zombie cylinders inside the planner because it adds a depth info and therefore the planner will use them. By calling CylindersModel->updateDive these cylinders will become visible and can be deleted by the user. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
8a92484b0c
commit
276fd441b5
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
#include "qt-models/weigthsysteminfomodel.h"
|
||||
#include "qt-models/yearlystatisticsmodel.h"
|
||||
#include "qt-models/diveplannermodel.h"
|
||||
#include "qt-models/cylindermodel.h"
|
||||
#include "desktop-widgets/divelogimportdialog.h"
|
||||
#include "desktop-widgets/divelogexportdialog.h"
|
||||
#include "desktop-widgets/usersurvey.h"
|
||||
|
@ -980,6 +981,7 @@ void MainWindow::on_actionReplanDive_triggered()
|
|||
divePlannerWidget()->setSalinity(current_dive->salinity);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(current_dive);
|
||||
reset_cylinders(&displayed_dive, true);
|
||||
CylindersModel::instance()->updateDive();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDivePlanner_triggered()
|
||||
|
|
Loading…
Add table
Reference in a new issue