Handle cleanup of the scanner process in the same thread as creation.
authorAndreas Hartmetz <ahartmetz@gmail.com>
Fri, 3 Dec 2010 02:46:42 +0000 (03:46 +0100)
committerAndreas Hartmetz <ahartmetz@gmail.com>
Fri, 3 Dec 2010 02:46:42 +0000 (03:46 +0100)
commit2c8bf2d1ff185cd4c31c639a3e051b6d5bf0b6d0
tree3eeda5f668fc8d20869ee6b55f81b71d3a81b59f
parent528bea78b8e6b74ca2f5d3ddf9c1147554a3e1ea
Handle cleanup of the scanner process in the same thread as creation.

The scanner process uses Qt API that does not like being called from
different threads, and doing all the work in run() seems to be what
ThreadWeaver expects jobs to do anyway.
This fixes an assert failure when using debug builds of Qt. Qt's
asserts generally only trip if there are serious problems...
src/core-impl/collections/db/ScanManager.cpp