aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-07-06 09:19:28 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-07-06 09:19:28 +0000
commit02b07e07b465a400a09447e22ee21017a5935018 (patch)
tree1e0217cab38101e7df8d5263f581a2315dc1a5fb
parent9650af36c530f4a5fea59bddbd69a9175337dabc (diff)
downloadqmmp-02b07e07b465a400a09447e22ee21017a5935018.tar.gz
qmmp-02b07e07b465a400a09447e22ee21017a5935018.tar.bz2
qmmp-02b07e07b465a400a09447e22ee21017a5935018.zip
fixed status icon message
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@440 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/General/statusicon/statusicon.cpp2
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);