diff options
Diffstat (limited to 'src/plugins/General/statusicon/statusicon.cpp')
| -rw-r--r-- | src/plugins/General/statusicon/statusicon.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/General/statusicon/statusicon.cpp b/src/plugins/General/statusicon/statusicon.cpp index 119af0e78..a9a7b31f6 100644 --- a/src/plugins/General/statusicon/statusicon.cpp +++ b/src/plugins/General/statusicon/statusicon.cpp @@ -92,6 +92,8 @@ void StatusIcon::setSongInfo(const SongInfo &song) message = song.title(); if (song.title().isEmpty()) message = song.artist(); + if (song.artist().isEmpty() && song.title().isEmpty()) + message = song.path().section('/',-1); if (m_showMessage) m_tray->showMessage (tr("Now Playing"), message, QSystemTrayIcon::Information, m_messageDelay); |
