Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JuK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
JuK
Commits
38e1b158
Commit
38e1b158
authored
Feb 27, 2004
by
Scott Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix random play and looped playback.
svn path=/trunk/kdemultimedia/juk/; revision=291942
parent
e5e84381
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
juk.cpp
juk.cpp
+1
-1
playlistsplitter.cpp
playlistsplitter.cpp
+13
-2
No files found.
juk.cpp
View file @
38e1b158
...
...
@@ -583,7 +583,7 @@ void JuK::readConfig()
void
JuK
::
saveConfig
()
{
KConfig
*
config
=
KGlobal
::
config
();
{
//
m_
player settings
{
// player settings
KConfigGroupSaver
saver
(
config
,
"Player"
);
if
(
m_sliderAction
&&
m_sliderAction
->
volumeSlider
())
config
->
writeEntry
(
"Volume"
,
m_sliderAction
->
volumeSlider
()
->
value
());
...
...
playlistsplitter.cpp
View file @
38e1b158
...
...
@@ -19,6 +19,8 @@
#include <kmessagebox.h>
#include <kinputdialog.h>
#include <kcmdlineargs.h>
#include <kmainwindow.h>
#include <kactioncollection.h>
#include <kdebug.h>
#include <qpopupmenu.h>
...
...
@@ -170,8 +172,17 @@ QString PlaylistSplitter::nextFile()
m_nextPlaylistItem
=
0
;
}
else
if
(
m_playingItem
)
{
i
=
m_playingItem
->
playlist
()
->
nextItem
(
m_playingItem
);
// TODO: check to see if we're in loop / random mode
KMainWindow
*
w
=
dynamic_cast
<
KMainWindow
*>
(
kapp
->
mainWidget
());
KAction
*
randomAction
=
w
?
w
->
actionCollection
()
->
action
(
"randomPlay"
)
:
0
;
KAction
*
loopAction
=
w
?
w
->
actionCollection
()
->
action
(
"loopPlaylist"
)
:
0
;
bool
random
=
w
&&
randomAction
&&
static_cast
<
KToggleAction
*>
(
randomAction
)
->
isChecked
();
bool
loop
=
w
&&
loopAction
&&
static_cast
<
KToggleAction
*>
(
loopAction
)
->
isChecked
();
i
=
m_playingItem
->
playlist
()
->
nextItem
(
m_playingItem
,
random
);
if
(
!
i
&&
loop
)
i
=
m_playingItem
->
playlist
()
->
visibleItems
().
front
();
}
return
play
(
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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