Wait for all thread to finish before deleting
This commit is contained in:
@@ -142,6 +142,8 @@ void ImageRingList::setLiveMode(bool live)
|
||||
|
||||
void ImageRingList::setFiles(const QStringList files, const QString ¤tFile)
|
||||
{
|
||||
QThreadPool::globalInstance()->clear();
|
||||
QThreadPool::globalInstance()->waitForDone();
|
||||
m_images.clear();
|
||||
foreach(const QString &file, files)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user