Disable OK button in file filter dialog until some characters are entered in text field.

This fixes #7960 and #7961.