From dc9ee8a2b5d5669e088301bb500a687f07d5d9d7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 29 May 2013 18:28:28 +0000 Subject: hide song length in shaded mode git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3504 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/playlisttitlebar.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/plugins/Ui/skinned/playlisttitlebar.cpp b/src/plugins/Ui/skinned/playlisttitlebar.cpp index 707d87aa1..a714cb223 100644 --- a/src/plugins/Ui/skinned/playlisttitlebar.cpp +++ b/src/plugins/Ui/skinned/playlisttitlebar.cpp @@ -265,10 +265,13 @@ void PlayListTitleBar::showCurrent() PlayListItem* info = m_model->currentItem(); if (info) { - m_text = QString("%1. ").arg(m_model->currentIndex()+1); - m_text.append(info->text()); - m_text.append(QString(" (%1:%2)").arg(info->length()/60) - .arg(info->length()%60, 2, 10, QChar('0'))); + m_text = QString("%1. %2").arg(m_model->currentIndex()+1) + .arg(info->text()); + if(info->length()) + { + m_text.append(QString(" (%1:%2)").arg(info->length()/60) + .arg(info->length()%60, 2, 10, QChar('0'))); + } } else m_text.clear(); -- cgit v1.2.3-13-gbd6f