1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Be more accurate when disconnecting the result from the settings changed signal

This commit is contained in:
Dominik Schmidt
2015-04-07 02:45:07 +02:00
parent 7ec91fff3b
commit c100cb913e

View File

@@ -550,11 +550,11 @@ Result::setDownloadFormats( const QList<DownloadFormat>& formats )
if ( !m_formats.isEmpty() )
{
connect( TomahawkSettings::instance(), SIGNAL( changed() ), SLOT( onSettingsChanged() ), Qt::UniqueConnection );
connect( TomahawkSettings::instance(), SIGNAL( changed() ), this, SLOT( onSettingsChanged() ), Qt::UniqueConnection );
}
else
{
TomahawkSettings::instance()->disconnect( this );
disconnect( TomahawkSettings::instance(), SIGNAL( changed() ), this, SLOT( onSettingsChanged() ) );
}
}