diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-02-22 19:14:49 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-02-22 19:14:49 +0000 |
| commit | 425ad58a94e6e324943a727e78a518a516e08af1 (patch) | |
| tree | ef7ed56c7ac8c2217b2f5484e79aad57195658fe /src | |
| parent | a6c92aa58cc33cb2a027d18767ec437805c7b266 (diff) | |
| download | qmmp-425ad58a94e6e324943a727e78a518a516e08af1.tar.gz qmmp-425ad58a94e6e324943a727e78a518a516e08af1.tar.bz2 qmmp-425ad58a94e6e324943a727e78a518a516e08af1.zip | |
fixed psi notification again
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2071 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/notifier/notifier.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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) |
