- Most of the code is there for rss feeds grouping. However it is not used yet and it is probably quite unstable

This commit is contained in:
Christophe Dumez 2009-08-22 14:06:05 +00:00
parent fdaeafc701
commit 73dbce45b2
8 changed files with 880 additions and 637 deletions

View file

@ -193,9 +193,11 @@ void downloadThread::run(){
}
void downloadThread::propagateDownloadedFile(subDownloadThread* st, QString url, QString path){
mutex.lock();
int index = subThreads.indexOf(st);
Q_ASSERT(index != -1);
subThreads.removeAt(index);
mutex.unlock();
delete st;
emit downloadFinished(url, path);
mutex.lock();
@ -206,9 +208,11 @@ void downloadThread::propagateDownloadedFile(subDownloadThread* st, QString url,
}
void downloadThread::propagateDownloadFailure(subDownloadThread* st, QString url, QString reason){
mutex.lock();
int index = subThreads.indexOf(st);
Q_ASSERT(index != -1);
subThreads.removeAt(index);
mutex.unlock();
delete st;
emit downloadFailure(url, reason);
mutex.lock();