┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc André Wittorf <[email protected]>2017-01-21 01:37:35 +0100
committerAlbert Astals Cid <[email protected]>2017-01-21 01:37:35 +0100
commit2e8e30026a207d380379fb2be0e4327bf4f455e8 (patch)
treedee32710863e484c289e12c16b9ddfd981418c33 /src
parent85121a8115c5a8b6b7c0a01073663d51bd64e6ae (diff)
Fix missing audio duration in details view
Enabling the 'duration' column in a folder with audio files did only show empty information. Properly initializing the QTime object fixes this. Testing Done Find a folder with audio files Make sure that Baloo has indexed this folder Open this folder in Dolphin, detail view, enable the Audio/Duration column Unpatched Dolphin does not display audio duration, patched Dolphin does Tested on Gentoo x86_64 with Qt 5.5.1, KF 5.21.0 and Arch x86_64 with Qt 5.6.0 and KF 5.21.0. REVIEW: 127799
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/private/kbaloorolesprovider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/private/kbaloorolesprovider.cpp b/src/kitemviews/private/kbaloorolesprovider.cpp
index e0b889e6c..2ce1f7bf6 100644
--- a/src/kitemviews/private/kbaloorolesprovider.cpp
+++ b/src/kitemviews/private/kbaloorolesprovider.cpp
@@ -181,7 +181,7 @@ QString KBalooRolesProvider::orientationFromValue(int value) const
QString KBalooRolesProvider::durationFromValue(int value) const
{
- QTime duration;
+ QTime duration(0, 0, 0);
duration = duration.addSecs(value);
return duration.toString(QStringLiteral("hh:mm:ss"));
}