comparison 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
comparison
equal deleted inserted replaced
1410:f724d092be7b 1413:a89ca5ccb958
4590 return; 4590 return;
4591 } 4591 }
4592 4592
4593 m_preferencesDialog = new PreferencesDialog(this); 4593 m_preferencesDialog = new PreferencesDialog(this);
4594 4594
4595 connect(m_preferencesDialog, SIGNAL(audioDeviceChanged()),
4596 this, SLOT(recreateAudioIO()));
4597
4595 // DeleteOnClose is safe here, because m_preferencesDialog is a 4598 // DeleteOnClose is safe here, because m_preferencesDialog is a
4596 // QPointer that will be zeroed when the dialog is deleted. We 4599 // QPointer that will be zeroed when the dialog is deleted. We
4597 // use it in preference to leaving the dialog lying around because 4600 // use it in preference to leaving the dialog lying around because
4598 // if you Cancel the dialog, it resets the preferences state 4601 // if you Cancel the dialog, it resets the preferences state
4599 // without resetting its own widgets, so its state will be 4602 // without resetting its own widgets, so its state will be