From 2c74a8c315441b95da98e3f4b35db1b9eefb76ff Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 9 Sep 2015 18:52:46 +0300 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()