void DevicesConfigPanel::OnSetupDeviceBClicked(WndButton &button) { SetupDevice(); // this is a hack to get the dialog to retain focus because // the progress dialog in the vario configuration somehow causes // focus problems button.set_focus(); }