From 60d5784c5d5e02990f57ace15cd264e35bdc5fe1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 23 Nov 2008 20:46:48 +0000 Subject: notifier plugin: show duration of the cue tracks git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@628 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/popupwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/General/notifier') diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index 86f74e736..c6ac1fc7a 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -39,7 +39,7 @@ PopupWidget::PopupWidget(const SongInfo &song, QWidget *parent) if(title.isEmpty()) title = song.path().section('/',-1); title.append(" "); - if (!song.isStream()) + if (song.length() > 0) title.append(QString("(%1:%2)").arg(song.length()/60).arg(song.length()%60, 2, 10, QChar('0'))); QHBoxLayout *hlayout = new QHBoxLayout(this); -- cgit v1.2.3-13-gbd6f