Changeset View
Changeset View
Standalone View
Standalone View
src/services/magnatune/MagnatuneInfoParser.cpp
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 221 | { | |||
---|---|---|---|---|---|
240 | if( m_cachedFrontpage.isEmpty() ) | 240 | if( m_cachedFrontpage.isEmpty() ) | ||
241 | m_cachedFrontpage = infoString; | 241 | m_cachedFrontpage = infoString; | ||
242 | 242 | | |||
243 | emit ( info( infoString ) ); | 243 | emit ( info( infoString ) ); | ||
244 | } | 244 | } | ||
245 | 245 | | |||
246 | void MagnatuneInfoParser::userPageDownloadComplete( KJob * downLoadJob ) | 246 | void MagnatuneInfoParser::userPageDownloadComplete( KJob * downLoadJob ) | ||
247 | { | 247 | { | ||
248 | if ( !downLoadJob->error() == 0 ) | 248 | if ( downLoadJob->error() ) | ||
249 | { | 249 | { | ||
250 | //TODO: error handling here | 250 | //TODO: error handling here | ||
251 | return ; | 251 | return ; | ||
252 | } | 252 | } | ||
253 | if ( downLoadJob != m_pageDownloadJob ) | 253 | if ( downLoadJob != m_pageDownloadJob ) | ||
254 | return ; //not the right job, so let's ignore it | 254 | return ; //not the right job, so let's ignore it | ||
255 | 255 | | |||
256 | 256 | | |||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |