mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove hacks regarding multiple gasmixes and cylinders
Enabling cylinder edit in Subsurface-mobile our previous hacks regarding multiple cylinders and gasmixes must be removed. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
674d8331f5
commit
4e0200863b
3 changed files with 5 additions and 21 deletions
|
@ -373,13 +373,7 @@ QString DiveObjectHelper::sumWeight() const
|
|||
|
||||
QString DiveObjectHelper::getCylinder() const
|
||||
{
|
||||
QString getCylinder;
|
||||
if (is_cylinder_used(m_dive, 1)){
|
||||
getCylinder = QObject::tr("Multiple");
|
||||
}
|
||||
else {
|
||||
getCylinder = m_dive->cylinder[0].type.description;
|
||||
}
|
||||
QString getCylinder = m_dive->cylinder[0].type.description;
|
||||
return getCylinder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue