Stopping the thread in the wizard that prevented it to stop correctly

pull/228/head
Siimacore 8 years ago
parent 63f101e0cd
commit 6af470ff03

@ -46,6 +46,7 @@ Wizard::UnshieldWorker::~UnshieldWorker()
void Wizard::UnshieldWorker::stopWorker()
{
mStopped = true;
mWait.wakeOne();
}
void Wizard::UnshieldWorker::setInstallComponent(Wizard::Component component, bool install)
@ -448,6 +449,10 @@ bool Wizard::UnshieldWorker::setupComponent(Component component)
QReadLocker readLock(&mLock);
emit requestFileDialog(component);
mWait.wait(&mLock);
if(mStopped) {
qDebug() << "We are asked to stop !!";
break;
}
disk.setPath(getDiskPath());
} else {
disk.setPath(getDiskPath());

Loading…
Cancel
Save