TOOLS: Fixed hanged application when running GUI tools

This was a regression introduced by commit d02758e. It caused
onIdle() to be never called and as a result the application didn't show
progress from the tool thread and didn't know either when it had
finished.