gui: use deleteLater to avoid crash

Deleting the dialog directly causes a crash in QT5. deleteLater is the appropriate way to delete something that may have pending events. In this case, the crash is fixed, which suggests that there are indeed pending events depending on the dialog.
Merge branch 'qt52' of github.com:supercollider/supercollider into qt52