1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +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() ) if ( !m_formats.isEmpty() )
{ {
connect( TomahawkSettings::instance(), SIGNAL( changed() ), SLOT( onSettingsChanged() ), Qt::UniqueConnection ); connect( TomahawkSettings::instance(), SIGNAL( changed() ), this, SLOT( onSettingsChanged() ), Qt::UniqueConnection );
} }
else else
{ {
TomahawkSettings::instance()->disconnect( this ); disconnect( TomahawkSettings::instance(), SIGNAL( changed() ), this, SLOT( onSettingsChanged() ) );
} }
} }