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:
@@ -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() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user