mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Only notify about resolver removed event if it actually makes a difference (and the Pipeline is not shutting down)
This commit is contained in:
@@ -148,7 +148,10 @@ Pipeline::removeResolver( Resolver* r )
|
|||||||
|
|
||||||
tDebug() << "Removed resolver:" << r->name();
|
tDebug() << "Removed resolver:" << r->name();
|
||||||
d->resolvers.removeAll( r );
|
d->resolvers.removeAll( r );
|
||||||
|
if ( d->running ) {
|
||||||
|
// Only notify if Pipeline is still active.
|
||||||
emit resolverRemoved( r );
|
emit resolverRemoved( r );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user