mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:03:23 +00:00
qthelper.cpp: don't hardcode the Dive m_duration as minutes
get_dive_duration_string() should be used in a similiar way to socialnetworks.cpp so that the Dive::put_duration() method sets the variable in the h:min format. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ff1837b05
commit
2c74a8c315
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ void Dive::put_depth()
|
|||
|
||||
void Dive::put_duration()
|
||||
{
|
||||
m_duration = QString::number(((dive->duration.seconds) / 60)) + QString::fromUtf8(" min");
|
||||
m_duration = get_dive_duration_string(dive->duration.seconds, QObject::tr("h:"), QObject::tr("min"));
|
||||
}
|
||||
|
||||
void Dive::put_buddy()
|
||||
|
|
Loading…
Add table
Reference in a new issue