compiles on Linux again
fix for ImgScannerTwain::selectSourceAsDefault

when cancel is pressed.
Code cleanup.