mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
Result::toDownloadJob( DownloadFormat ) now expects the format you want returned.
This commit is contained in:
@@ -527,11 +527,11 @@ Result::track() const
|
||||
|
||||
|
||||
downloadjob_ptr
|
||||
Result::toDownloadJob()
|
||||
Result::toDownloadJob( const DownloadFormat& format )
|
||||
{
|
||||
if ( !m_downloadJob )
|
||||
{
|
||||
m_downloadJob = downloadjob_ptr( new DownloadJob( track(), downloadFormats().first() ) );
|
||||
m_downloadJob = downloadjob_ptr( new DownloadJob( track(), format ) );
|
||||
connect( m_downloadJob.data(), SIGNAL( progress( int ) ), SIGNAL( updated() ) );
|
||||
}
|
||||
|
||||
|
@@ -135,7 +135,7 @@ public:
|
||||
void setDownloadFormats( const QList<DownloadFormat>& formats ) { m_formats = formats; }
|
||||
|
||||
downloadjob_ptr downloadJob() const { return m_downloadJob; }
|
||||
downloadjob_ptr toDownloadJob();
|
||||
downloadjob_ptr toDownloadJob( const DownloadFormat& format );
|
||||
|
||||
public slots:
|
||||
void deleteLater();
|
||||
|
Reference in New Issue
Block a user