Commit 1c882295 authored by Ralf Engels's avatar Ralf Engels
Browse files

Prevent crash if requested to create empty playlist

BUG:274992
parent a7f78c99
......@@ -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;
/*
......
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