Provide global function to get parent window for dialogues

Authored by djarvie on Apr 23 2020, 11:04 PM.