1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 23:51:18 +02:00

DeviceToolbar.cpp: fix resizing problem when changing hosts

This commit is contained in:
mchinen
2011-01-09 20:25:13 +00:00
parent 14cc918d7f
commit 9cb9866b35

View File

@@ -478,7 +478,7 @@ void DeviceToolBar::FillHostDevices()
mInput->Append(MakeDeviceSourceString(&mInputDeviceSourceMaps[i]));
}
mInput->Enable(mInput->GetCount() ? true : false);
mInput->SetSize(mInput->GetBestFittingSize());
mInput->SetSize(mInput->GetEffectiveMinSize());
// mInput->Layout();
mOutput->Clear();
for (i = 0; i < mOutputDeviceSourceMaps.size(); i++) {
@@ -486,7 +486,11 @@ void DeviceToolBar::FillHostDevices()
mOutput->Append(MakeDeviceSourceString(&mOutputDeviceSourceMaps[i]));
}
mOutput->Enable(mOutput->GetCount() ? true : false);
mOutput->SetSize(mOutput->GetBestFittingSize());
mOutput->SetSize(mOutput->GetEffectiveMinSize());
mInputChannels->SetSize(mInputChannels->GetEffectiveMinSize());
mHost->SetSize(mHost->GetEffectiveMinSize());
// mOutput->Layout();
// make the device display selection reflect the prefs if they exist