mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
CylindersModel: remove mark_dive_list_changed
Cylinder-editing is controlled by undo (either by saving a planned dive or by using the equipment tab). There is no point in setting the dive_list_changed flag. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d02489f888
commit
a4a06c48bf
1 changed files with 0 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
|||
#include "tankinfomodel.h"
|
||||
#include "models.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/divelist.h" // for mark_divelist_changed()
|
||||
#include "core/color.h"
|
||||
#include "qt-models/diveplannermodel.h"
|
||||
#include "core/gettextfromc.h"
|
||||
|
@ -337,7 +336,6 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
|
|||
QModelIndexList matches = tanks->match(tanks->index(0, 0), Qt::DisplayRole, cyl->type.description);
|
||||
|
||||
cyl->type.size = string_to_volume(qPrintable(vString), cyl->type.workingpressure);
|
||||
mark_divelist_changed(true);
|
||||
if (!matches.isEmpty())
|
||||
tanks->setData(tanks->index(matches.first().row(), TankInfoModel::ML), cyl->type.size.mliter);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue