[tracker/needle: 42/53] tracker-needle: Fixed bug where seconds where not added if 0 for Music



commit b19ed83f2cedb1d788243c04d0a9374fb3d92b1f
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Sep 20 23:17:55 2010 +0100

    tracker-needle: Fixed bug where seconds where not added if 0 for Music

 src/tracker-needle/tracker-utils.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-needle/tracker-utils.vala b/src/tracker-needle/tracker-utils.vala
index d402b88..6b8da51 100644
--- a/src/tracker-needle/tracker-utils.vala
+++ b/src/tracker-needle/tracker-utils.vala
@@ -98,9 +98,8 @@ public string tracker_time_format_from_seconds (string seconds_str) {
 		output.append ("%s%.2d".printf (h > 0 ? ":" : "", m));
 	}
 
-	if (s > 0) {
-		output.append ("%s%.2d".printf (m > 0 ? ":" : "0:", s));
-	}
+	// Always show seconds
+	output.append ("%s%.2d".printf (m > 0 ? ":" : "0:", s));
 
 	if (output.len < 1) {
 		return _("Less than one second");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]