Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 1413:a89ca5ccb958 3.0-integration
Reopen the audio device directly when preference is changed
author | Chris Cannam |
---|---|
date | Mon, 12 Dec 2016 15:45:33 +0000 |
parents | f78da49ef8e0 |
children | 2dd0bc9f8fd4 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Dec 12 09:13:44 2016 +0000 +++ b/main/MainWindow.cpp Mon Dec 12 15:45:33 2016 +0000 @@ -4592,6 +4592,9 @@ m_preferencesDialog = new PreferencesDialog(this); + connect(m_preferencesDialog, SIGNAL(audioDeviceChanged()), + this, SLOT(recreateAudioIO())); + // DeleteOnClose is safe here, because m_preferencesDialog is a // QPointer that will be zeroed when the dialog is deleted. We // use it in preference to leaving the dialog lying around because