|
|
@ -110,11 +110,15 @@ class deleteThread : public QThread { |
|
|
|
if(path_list.size() != 0){ |
|
|
|
if(path_list.size() != 0){ |
|
|
|
QString path = path_list.takeFirst(); |
|
|
|
QString path = path_list.takeFirst(); |
|
|
|
mutex.unlock(); |
|
|
|
mutex.unlock(); |
|
|
|
|
|
|
|
if(QFile::exists(path)){ |
|
|
|
subDeleteThread *st = new subDeleteThread(0, path); |
|
|
|
subDeleteThread *st = new subDeleteThread(0, path); |
|
|
|
subThreads << st; |
|
|
|
subThreads << st; |
|
|
|
connect(st, SIGNAL(deletionSuccessST(subDeleteThread*, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString))); |
|
|
|
connect(st, SIGNAL(deletionSuccessST(subDeleteThread*, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString))); |
|
|
|
connect(st, SIGNAL(deletionFailureST(subDeleteThread*, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString))); |
|
|
|
connect(st, SIGNAL(deletionFailureST(subDeleteThread*, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString))); |
|
|
|
st->start(); |
|
|
|
st->start(); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
qDebug("%s does not exist, nothing to delete", (const char*)path.toUtf8()); |
|
|
|
|
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
condition.wait(&mutex); |
|
|
|
condition.wait(&mutex); |
|
|
|
mutex.unlock(); |
|
|
|
mutex.unlock(); |
|
|
|