Changeset View
Changeset View
Standalone View
Standalone View
src/dynamic/BiasedPlaylist.cpp
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 113 | { | |||
---|---|---|---|---|---|
117 | if( !m_solver ) | 117 | if( !m_solver ) | ||
118 | { | 118 | { | ||
119 | debug() << "assigning new m_solver"; | 119 | debug() << "assigning new m_solver"; | ||
120 | m_solver = new BiasSolver( numRequested, m_bias, getContext() ); | 120 | m_solver = new BiasSolver( numRequested, m_bias, getContext() ); | ||
121 | connect( m_solver, &BiasSolver::done, this, &BiasedPlaylist::solverFinished ); | 121 | connect( m_solver, &BiasSolver::done, this, &BiasedPlaylist::solverFinished ); | ||
122 | 122 | | |||
123 | Amarok::Components::logger()->newProgressOperation( m_solver, | 123 | Amarok::Components::logger()->newProgressOperation( m_solver, | ||
124 | i18n( "Generating playlist..." ), 100, | 124 | i18n( "Generating playlist..." ), 100, | ||
125 | this, SLOT(requestAbort()) ); | 125 | this, &BiasedPlaylist::requestAbort ); | ||
126 | 126 | | |||
127 | ThreadWeaver::Queue::instance()->enqueue( QSharedPointer<ThreadWeaver::Job>(m_solver) ); | 127 | ThreadWeaver::Queue::instance()->enqueue( QSharedPointer<ThreadWeaver::Job>(m_solver) ); | ||
128 | 128 | | |||
129 | debug() << "called prepareToRun"; | 129 | debug() << "called prepareToRun"; | ||
130 | } | 130 | } | ||
131 | else | 131 | else | ||
132 | debug() << "solver already running!"; | 132 | debug() << "solver already running!"; | ||
133 | } | 133 | } | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |