mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 13:01:32 +01:00
Fix mpris
This commit is contained in:
parent
0beb12fc14
commit
f929a88473
@ -19,10 +19,6 @@
|
||||
#include "mpris1.h"
|
||||
#include "mpris2.h"
|
||||
|
||||
#include <QFuture>
|
||||
#include <QFutureWatcher>
|
||||
#include <QtConcurrentRun>
|
||||
|
||||
namespace mpris {
|
||||
|
||||
Mpris::Mpris(Player* player, ArtLoader* art_loader, QObject* parent)
|
||||
|
@ -129,8 +129,6 @@ class OSD : public QObject {
|
||||
#endif // Q_OS_DARWIN
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
void DoInit();
|
||||
|
||||
boost::scoped_ptr<OrgFreedesktopNotificationsInterface> interface_;
|
||||
uint notification_id_;
|
||||
QDateTime last_notification_time_;
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "dbus/notification.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QTextDocument>
|
||||
#include <QtConcurrentRun>
|
||||
|
||||
using boost::scoped_ptr;
|
||||
|
||||
@ -61,10 +60,6 @@ const QDBusArgument& operator>> (const QDBusArgument& arg, QImage& image) {
|
||||
void OSD::Init() {
|
||||
notification_id_ = 0;
|
||||
|
||||
QtConcurrent::run(this, &OSD::DoInit);
|
||||
}
|
||||
|
||||
void OSD::DoInit() {
|
||||
#ifdef HAVE_DBUS
|
||||
interface_.reset(new OrgFreedesktopNotificationsInterface(
|
||||
OrgFreedesktopNotificationsInterface::staticInterfaceName(),
|
||||
|
Loading…
Reference in New Issue
Block a user