Core: Bugfix for file open dialog