qt: fix crash when preferences dialog is rejected
With Breeze style, the application crashes if preferences dialog is rejected as long as the style was changed. Regardless of the crash, it does not make sense to update the dialog itself if it is getting destroyed. The fix for the crash is a corollary of correcting this behavior.