aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp
index d2e36a94f..86f74e736 100644
--- a/src/plugins/General/notifier/popupwidget.cpp
+++ b/src/plugins/General/notifier/popupwidget.cpp
@@ -36,6 +36,8 @@ PopupWidget::PopupWidget(const SongInfo &song, QWidget *parent)
Qt::WindowStaysOnTopHint);
setFrameStyle(QFrame::Box | QFrame::Plain);
QString title = song.title();
+ if(title.isEmpty())
+ title = song.path().section('/',-1);
title.append(" ");
if (!song.isStream())
title.append(QString("(%1:%2)").arg(song.length()/60).arg(song.length()%60, 2, 10, QChar('0')));