1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Useless connect is useless.

ControlConnection's finished() triggers deleteLater(), which calls
Source::setOffline(). For this reason, finished() does not need to be
connected to setOffline(), because this causes a race condition.
This commit is contained in:
Teo Mrnjavac
2012-10-20 11:42:50 +02:00
parent e439bd3b43
commit 67b38695bb

View File

@@ -88,8 +88,6 @@ void
Source::setControlConnection( ControlConnection* cc ) Source::setControlConnection( ControlConnection* cc )
{ {
m_cc = cc; m_cc = cc;
if ( cc )
connect( cc, SIGNAL( finished() ), SLOT( setOffline() ), Qt::QueuedConnection );
} }