kcm/SpeakerTest: Close dialog when the tested device disconnects
If a device gets disconnected while the Speaker Test dialog is open, the dialog will correctly remove the channels from the model, leaving it in a visual broken state.
Testing plan
- Connect an external audio device (bluetooth for instance)
- In the Sound settings, press Test for that device
- Disconnect the device
Screenshot
AFTER: Happiness