mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
remove qtscriptresolvers
This commit is contained in:
parent
25d0cee1f8
commit
b631a6b3bd
src/resolvers
@ -39,12 +39,15 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
|
||||
m_engine->moveToThread( m_thread );
|
||||
m_ready = true;
|
||||
Tomahawk::Pipeline::instance()->addResolver( this );
|
||||
|
||||
connect( this, SIGNAL( destroyed( QObject* ) ), m_thread, SLOT( deleteLater() ) );
|
||||
}
|
||||
|
||||
|
||||
QtScriptResolver::~QtScriptResolver()
|
||||
{
|
||||
Tomahawk::Pipeline::instance()->removeResolver( this );
|
||||
delete m_engine;
|
||||
}
|
||||
|
||||
|
||||
@ -109,4 +112,5 @@ void
|
||||
QtScriptResolver::stop()
|
||||
{
|
||||
m_stopped = true;
|
||||
emit finished();
|
||||
}
|
||||
|
@ -56,6 +56,9 @@ public slots:
|
||||
virtual void resolve( const Tomahawk::query_ptr& query );
|
||||
virtual void stop();
|
||||
|
||||
signals:
|
||||
void finished();
|
||||
|
||||
private slots:
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user