I am now trying apply it to another part of my code, where a pushbutton connection opens a dialog, but the dialog won't actually open until I close the original window.... hopefully I'm on the right track.
Hmm sorry, but it's hard to say anything without seeing relevant code.
Bookmarks