avoid warning due to missing prototype
change variable name
resolve race condition when scan progress was canceled
show complete window at once and get rid of the nasty loop really slowing down the dialog
Merge pull request #345 from koeppea/cancel-scan

Cancel scan