Minor improvement for custom file dialog use.
Authored by: brunoherbelin 2017-12-28
Parent: [r1535]
Child: [r1537]