Reverted the fix for warning-removal (Thread and QT4 related)

It was reverted as the GUI thread didn't invoke the spinning. It probably did invoke the spinning, but fiwalk was too fast and most of the time was taken by the tree generation. So it was necessary to also do the spinning while building the tree. Hence the code was reverted. A different approach to be taken for removing the warnings.