»Assign background« can’t be canceled

In version 1247, 1246, 1245 and maybe earlier versions, the Assign background…-command can’t be canceled. The window to choose a file stays open, no matter how often I click on cancel.

I’ll fix it.