1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

Connect the AudioEngine::paused() signal to

SourcePlaylistInterface::audioPaused() in LatchManager
This commit is contained in:
Dominik Schmidt 2013-07-03 20:33:47 +02:00
parent 69ee958b45
commit bcd3120779
2 changed files with 1 additions and 3 deletions

View File

@ -66,6 +66,7 @@ LatchManager::latchRequest( const source_ptr& source )
m_state = Latching;
m_waitingForLatch = source;
connect( AudioEngine::instance(), SIGNAL( paused() ), source->playlistInterface().data(), SLOT( audioPaused() ) );
AudioEngine::instance()->playItem( source->playlistInterface(), source->playlistInterface()->nextResult() );
}

View File

@ -39,9 +39,6 @@ SourcePlaylistInterface::SourcePlaylistInterface( Tomahawk::Source* source, Toma
if ( !m_source.isNull() )
connect( m_source.data(), SIGNAL( playbackStarted( const Tomahawk::track_ptr& ) ), SLOT( onSourcePlaybackStarted( const Tomahawk::track_ptr& ) ) );
if ( AudioEngine::instance() )
connect( AudioEngine::instance(), SIGNAL( paused() ), SLOT( audioPaused() ) );
}