mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-17 16:11:11 +02:00
bug 11: fix bad index typo. may fix bug 11 issues on win 7.
This commit is contained in:
@@ -286,7 +286,7 @@ void DeviceToolBar::UpdatePrefs()
|
|||||||
if (outMaps[i].hostString == hostName &&
|
if (outMaps[i].hostString == hostName &&
|
||||||
MakeDeviceSourceString(&outMaps[i]) == mOutput->GetString(0)) {
|
MakeDeviceSourceString(&outMaps[i]) == mOutput->GetString(0)) {
|
||||||
// use the default. It should exist but check just in case, falling back on the 0 index.
|
// use the default. It should exist but check just in case, falling back on the 0 index.
|
||||||
DeviceSourceMap *defaultMap = DeviceManager::Instance()->GetDefaultOutputDevice(inMaps[i].hostIndex);
|
DeviceSourceMap *defaultMap = DeviceManager::Instance()->GetDefaultOutputDevice(outMaps[i].hostIndex);
|
||||||
if (defaultMap) {
|
if (defaultMap) {
|
||||||
mOutput->SetStringSelection(MakeDeviceSourceString(defaultMap));
|
mOutput->SetStringSelection(MakeDeviceSourceString(defaultMap));
|
||||||
SetDevices(NULL, defaultMap);
|
SetDevices(NULL, defaultMap);
|
||||||
|
Reference in New Issue
Block a user