Commit 0fb22f61 authored by Michael Pyne's avatar Michael Pyne
Browse files

player: Fix bug where moving to next track would play twice in rapid succession.

parent c8d591ac
Pipeline #205160 passed with stage
in 53 seconds
......@@ -192,11 +192,11 @@ void PlayerManager::play(const FileHandle &file)
if(!m_media || !m_playlistInterface || file.isNull())
return;
m_media->setCurrentSource(QUrl::fromLocalFile(file.absFilePath()));
m_media->play();
if(m_file != file)
if(m_file != file) {
emit signalItemChanged(file);
m_media->setCurrentSource(QUrl::fromLocalFile(file.absFilePath()));
m_media->play();
}
m_file = file;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment