From 425ad58a94e6e324943a727e78a518a516e08af1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 22 Feb 2011 19:14:49 +0000 Subject: fixed psi notification again git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2071 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/notifier.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp index 31765681a..5923ec90b 100644 --- a/src/plugins/General/notifier/notifier.cpp +++ b/src/plugins/General/notifier/notifier.cpp @@ -43,9 +43,17 @@ Notifier::Notifier(QObject *parent) connect (m_core, SIGNAL(metaDataChanged ()), SLOT(showMetaData())); connect (m_core, SIGNAL(stateChanged (Qmmp::State)), SLOT(setState(Qmmp::State))); connect (m_core, SIGNAL(volumeChanged(int, int)), SLOT(showVolume(int, int))); + if(m_psi) //clear psi notification + { + QFile::remove(QDir::homePath()+"/.psi/tune"); + QFile::remove(QDir::homePath()+"/.psi-plus/tune"); + } if (m_core->state() == Qmmp::Playing) //test message showMetaData(); +} +Notifier::~Notifier() +{ if(m_psi) //clear psi notification { QFile::remove(QDir::homePath()+"/.psi/tune"); @@ -53,9 +61,6 @@ Notifier::Notifier(QObject *parent) } } -Notifier::~Notifier() -{} - void Notifier::setState(Qmmp::State state) { switch ((uint) state) -- cgit v1.2.3-13-gbd6f