mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Possible fix for QtScriptResolver crash.
This commit is contained in:
@@ -16,7 +16,6 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
|
|||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << scriptPath;
|
qDebug() << Q_FUNC_INFO << scriptPath;
|
||||||
|
|
||||||
m_engine->moveToThread( m_thread );
|
|
||||||
m_thread->start();
|
m_thread->start();
|
||||||
|
|
||||||
QFile scriptFile( scriptPath );
|
QFile scriptFile( scriptPath );
|
||||||
@@ -37,6 +36,7 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
|
|||||||
<< "timeout" << m_timeout << endl
|
<< "timeout" << m_timeout << endl
|
||||||
<< "preference" << m_preference;
|
<< "preference" << m_preference;
|
||||||
|
|
||||||
|
m_engine->moveToThread( m_thread );
|
||||||
m_ready = true;
|
m_ready = true;
|
||||||
Tomahawk::Pipeline::instance()->addResolver( this );
|
Tomahawk::Pipeline::instance()->addResolver( this );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user