1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01: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:
Uwe L. Korn 2014-07-17 00:57:57 +01:00
parent 4d1decee93
commit 4576f9a8d5

View File

@ -148,7 +148,10 @@ Pipeline::removeResolver( Resolver* r )
tDebug() << "Removed resolver:" << r->name();
d->resolvers.removeAll( r );
emit resolverRemoved( r );
if ( d->running ) {
// Only notify if Pipeline is still active.
emit resolverRemoved( r );
}
}