aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/General/General.pro2
-rw-r--r--src/plugins/General/notifier/notifier.cpp4
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp4
-rw-r--r--src/plugins/Ui/qsui/mainwindow.cpp4
4 files changed, 7 insertions, 7 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);
diff --git a/src/plugins/Ui/qsui/mainwindow.cpp b/src/plugins/Ui/qsui/mainwindow.cpp
index fe93a2976..1548ec421 100644
--- a/src/plugins/Ui/qsui/mainwindow.cpp
+++ b/src/plugins/Ui/qsui/mainwindow.cpp
@@ -224,9 +224,9 @@ void MainWindow::showState(Qmmp::State state)
case Qmmp::Playing:
{
updateStatus();
- m_analyzer->setCover(MetaDataManager::instance()->getCover(m_core->url()));
+ m_analyzer->setCover(MetaDataManager::instance()->getCover(m_core->path()));
CoverWidget *cw = qobject_cast<CoverWidget *>(m_ui.coverDockWidget->widget());
- cw->setCover(MetaDataManager::instance()->getCover(m_core->url()));
+ cw->setCover(MetaDataManager::instance()->getCover(m_core->path()));
break;
}
case Qmmp::Paused: