fix FS#1063 - File dialogs stopped working