1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

Merge branch 'playlistinterface_ptr' of ssh://github.com/tomahawk-player/tomahawk into playlistinterface_ptr

This commit is contained in:
Jeff Mitchell
2011-12-30 23:41:55 -05:00

View File

@@ -68,7 +68,7 @@ MprisPlugin::MprisPlugin()
// When a track is added or removed, CanGoNext updated signal is sent
Tomahawk::playlistinterface_ptr playlist = AudioEngine::instance()->playlist();
if( !playlist.isNull() )
connect( playlist->object(), SIGNAL( trackCountChanged( unsigned int ) ),
connect( playlist.data(), SIGNAL( trackCountChanged( unsigned int ) ),
SLOT( onTrackCountChanged( unsigned int ) ) );
// Connect to AudioEngine's seeked signal
@@ -548,7 +548,7 @@ MprisPlugin::onPlaylistChanged( Tomahawk::playlistinterface_ptr playlist )
qDebug() << "playlist not null";
if( !playlist.isNull() )
connect( playlist->object(), SIGNAL( trackCountChanged( unsigned int ) ),
connect( playlist.data(), SIGNAL( trackCountChanged( unsigned int ) ),
SLOT( onTrackCountChanged( unsigned int ) ) );
qDebug() << "connected new playlist";