qt: fix MainCtx destruction order

Edited by Pierre Lamot

Merge request reports

Loading