Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
JuK
Commits
79bb18e4
Commit
79bb18e4
authored
Jul 14, 2022
by
Michael Pyne
Browse files
player: Fix bug where moving to next track would play twice in rapid succession.
parent
9de34979
Pipeline
#205161
passed with stage
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
playermanager.cpp
View file @
79bb18e4
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment