diff options
Diffstat (limited to 'delegates.cpp')
-rw-r--r-- | delegates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/delegates.cpp b/delegates.cpp index a168790..7a14bb4 100644 --- a/delegates.cpp +++ b/delegates.cpp @@ -86,7 +86,7 @@ QString DurationDelegate::displayText(const QVariant &value, const QLocale &loca if(value.toString().contains("x") || value.toString() == "skipped"){ return value.toString(); } - int secs = value.toFloat(); + int secs = value.toInt(); if(secs == 0){ return tr("n/a"); } |