diff options
Diffstat (limited to 'src/plugins/General/notifier')
| -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) |
