diff options
Diffstat (limited to 'src/plugins/General')
| -rw-r--r-- | src/plugins/General/General.pro | 2 | ||||
| -rw-r--r-- | src/plugins/General/notifier/notifier.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/notifier/popupwidget.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/General/General.pro b/src/plugins/General/General.pro index 589d14b7c..14cae0744 100644 --- a/src/plugins/General/General.pro +++ b/src/plugins/General/General.pro @@ -1,7 +1,7 @@ include(../../../qmmp.pri) SUBDIRS += statusicon \ -# notifier \ + notifier \ # lyrics \ # scrobbler \ # fileops \ diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp index c7d25db94..20b5b6195 100644 --- a/src/plugins/General/notifier/notifier.cpp +++ b/src/plugins/General/notifier/notifier.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2017 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -54,7 +54,7 @@ Notifier::Notifier(QObject *parent) : QObject(parent) m_disableForFullScreen = settings.value("disable_fullscreen", false).toBool(); settings.endGroup(); m_core = SoundCore::instance(); - connect (m_core, SIGNAL(metaDataChanged ()), SLOT(showMetaData())); + connect (m_core, SIGNAL(trackInfoChanged()), SLOT(showMetaData())); connect (m_core, SIGNAL(stateChanged (Qmmp::State)), SLOT(setState(Qmmp::State))); connect (m_core, SIGNAL(volumeChanged(int, int)), SLOT(showVolume(int, int))); diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index d5b72e04b..7837aff65 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -84,11 +84,11 @@ void PopupWidget::showMetaData() m_timer->stop(); SoundCore *core = SoundCore::instance(); - QString title = m_formatter.format(core->metaData(), core->duration() / 1000); + QString title = m_formatter.format(core->trackInfo()); m_label1->setText(title); - QPixmap pix = MetaDataManager::instance()->getCover(core->metaData(Qmmp::URL)); + QPixmap pix = MetaDataManager::instance()->getCover(core->path()); if(!pix.isNull()) { m_pixlabel->setFixedSize(m_coverSize,m_coverSize); |
