Add progresdialog for queries.
Merge branch 'master' of https://github.com/tombul/xml_2013