From 02b07e07b465a400a09447e22ee21017a5935018 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 6 Jul 2008 09:19:28 +0000 Subject: fixed status icon message git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@440 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/statusicon/statusicon.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-13-gbd6f