Previous patch was wrong. This one captures current selection in Open Object dialog.