mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
Test cylinder usage properly
It is better to use the proper function to test if cylinder is in use than just checking the description. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c97ed010c7
commit
8c38dbf3b7
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ QString DiveObjectHelper::sumWeight() const
|
|||
QString DiveObjectHelper::getCylinder() const
|
||||
{
|
||||
QString getCylinder;
|
||||
if (m_dive->cylinder[1].type.description != NULL){
|
||||
if (is_cylinder_used(m_dive, 1)){
|
||||
getCylinder = QObject::tr("Multiple");
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue