1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-28 11:42:42 +01: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 )
{
m_cc = cc;
if ( cc )
connect( cc, SIGNAL( finished() ), SLOT( setOffline() ), Qt::QueuedConnection );
}