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
Amarok
Commits
1c882295
Commit
1c882295
authored
Jul 04, 2011
by
Ralf Engels
Browse files
Prevent crash if requested to create empty playlist
BUG:274992
parent
a7f78c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic/BiasSolver.cpp
View file @
1c882295
...
...
@@ -220,6 +220,9 @@ BiasSolver::simpleOptimize( SolverList *list )
{
DEBUG_BLOCK
;
if
(
list
->
m_trackList
.
count
()
<=
list
->
m_contextCount
)
return
;
// nothing to optimize. All tracks are in the context
// first set some random tracks
// this prevents the part bias from first fullfilling the easy conditions
for
(
int
i
=
0
;
i
<
m_n
/
2
;
i
++
)
...
...
@@ -259,6 +262,9 @@ BiasSolver::annealingOptimize( SolverList *list,
{
DEBUG_BLOCK
;
if
(
list
->
m_trackList
.
count
()
<=
list
->
m_contextCount
)
return
;
// nothing to optimize. All tracks are in the context
SolverList
originalList
=
*
list
;
/*
...
...
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