enable/disable raster tools (fixes #8179)
use QFileDialog.getOpenFileNameAndFilter variant when setting last filter (fixes #8138)