The "folder" property is very likely set by the dialog if you change the folder, which overwrites the initial binding.
Why the commented line fixes that I don't know, usually it would be required to reset the binding, e.g. using Qt.binding().
Cheers,
_
Bookmarks