Fix filechooser .path infnitie loop.
Merge pull request #1758 from matham/master

Fix filechooser .path infnitie loop.