summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-09-09 18:52:46 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-09 09:16:15 -0700
commit2c74a8c315441b95da98e3f4b35db1b9eefb76ff (patch)
treefff3b1e1c865d7b26b76c9369f8bcc52cca09f56
parent6ff1837b059e91a3445a92d719755a02108b908f (diff)
downloadsubsurface-2c74a8c315441b95da98e3f4b35db1b9eefb76ff.tar.gz
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>
-rw-r--r--qthelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 4ccc16d76..a4dc09057 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -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()