I think it is better that way and confuse less the users.
secstotimestr( psz_time, ( b_remainingTime && length ) ? length - time
: time );
secstotimestr( psz_time, ( b_remainingTime && length ) ? length - time
: time );
- QString title; title.sprintf( "%s/%s", psz_time, psz_length );
+ QString title;
+ title.sprintf( "%s/%s", psz_time,
+ ( !length && time ) ? "--:--" : psz_length );
+
/* Add a minus to remaining time*/
if( b_remainingTime && length ) timeLabel->setText( " -"+title+" " );
else timeLabel->setText( " "+title+" " );
/* Add a minus to remaining time*/
if( b_remainingTime && length ) timeLabel->setText( " -"+title+" " );
else timeLabel->setText( " "+title+" " );