Pass parentWindow to dialogs instead of using app.activeWindow() to fix
problems on pyqtdeploy