Fix abort from Mtp loader thread.

A commit in qt 5.7 changes a qWarning to a qFatal if a QThread is still running
when it's deleted. When we get the LoadFinished signal in MtpDevice, stop
the loader thread's event loop to avoid this situation.

See qtbase commit c8277b6e532
This commit is contained in:
Jim Broadus 2020-01-06 23:08:13 -08:00 committed by John Maguire
parent 3f4c788339
commit 79b7e3fe13
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void MtpDevice::LoadFinished(bool success) {
loader_->deleteLater();
loader_ = nullptr;
db_busy_.unlock();
loader_thread_->quit();
emit ConnectFinished(unique_id_, success);
}